From 37b98bb1f0f50d059370bd15353909a27c025c8f Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 27 May 2015 15:10:59 +0200 Subject: [PATCH] tag_missing_resources.sh: handle images not in Resources/ directory but possibly in subdirectories (launchscreen) --- Tools/tag_missing_resources.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tools/tag_missing_resources.sh b/Tools/tag_missing_resources.sh index a568297f8..3bcd30880 100755 --- a/Tools/tag_missing_resources.sh +++ b/Tools/tag_missing_resources.sh @@ -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