tag_missing_resources.sh: handle images not in Resources/ directory but possibly in subdirectories (launchscreen)

This commit is contained in:
Gautier Pelloux-Prayer 2015-05-27 15:10:59 +02:00
parent e3ea73d871
commit 37b98bb1f0

View file

@ -50,12 +50,16 @@ grep -oE '([^ /"])*.png' ../linphone.xcodeproj/project.pbxproj | sort -u > $alre
find ../Resources/ -name *.png -exec basename {} \; | sort -u > $to_sync
# clean red tags
cd ../Resources && tag -r red $(cat $to_sync $already_sync) && cd - 1>/dev/null
for file in $to_sync $already_sync; do
find ../Resources -name $file -exec tag -a red {} \;
done
# 'comm' command output files contained in second file but not in first nor in common
non_synced_files=$(comm -13 $already_sync $to_sync)
cd ../Resources/ && tag -a red $non_synced_files && cd - 1>/dev/null
for file in $non_synced_files; do
find ../Resources -name $file -exec tag -a red {} \;
done
rm $already_sync $to_sync