From: Pierre d'Herbemont Date: Tue, 23 Feb 2010 18:35:31 +0000 (+0100) Subject: contrib: Also fix up .pc file on Mac OS X. X-Git-Tag: 1.1.0-pre1~715 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ccdfdfdf1bca9dd8b24d332e38a7104cffbd935e;p=vlc contrib: Also fix up .pc file on Mac OS X. --- diff --git a/extras/contrib/change_prefix.sh b/extras/contrib/change_prefix.sh index 8c49af98fa..df9c0a2bef 100755 --- a/extras/contrib/change_prefix.sh +++ b/extras/contrib/change_prefix.sh @@ -45,7 +45,7 @@ fi cd $top_dir pwd files=`find . -type f` -for file in $files; do +for file in $files; do if test ".`file $file | grep Mach-O`" != "." ; then echo "Changing prefixes of '$file'" islib=n @@ -64,11 +64,13 @@ for file in $files; do fi fi done - elif test ".`file $file | grep \"text\|shell\"`" != "." ; then - echo "Fixing up shell/text file "$file"" + elif test ".`file $file | grep \"text\|shell\"`" != "." -o ".`echo $file | grep pc$`" != "."; then + echo "Fixing up shell/text/pc file "$file"" cp $file $file.tmp sed -e "s,$prefix,$new_prefix,g" < $file > $file.tmp mv -f $file.tmp $file + else + echo "Not doing anything with $file" fi done