[vlc-devel] commit: contrib: Also fix up .pc file on Mac OS X. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Feb 23 19:36:17 CET 2010
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Tue Feb 23 19:35:31 2010 +0100| [ccdfdfdf1bca9dd8b24d332e38a7104cffbd935e] | committer: Pierre d'Herbemont
contrib: Also fix up .pc file on Mac OS X.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ccdfdfdf1bca9dd8b24d332e38a7104cffbd935e
---
extras/contrib/change_prefix.sh | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/extras/contrib/change_prefix.sh b/extras/contrib/change_prefix.sh
index 8c49af9..df9c0a2 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
More information about the vlc-devel
mailing list