]> git.sesse.net Git - vlc/commitdiff
contrib: Also fix up .pc file on Mac OS X.
authorPierre d'Herbemont <pdherbemont@free.fr>
Tue, 23 Feb 2010 18:35:31 +0000 (19:35 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Tue, 23 Feb 2010 18:36:13 +0000 (19:36 +0100)
extras/contrib/change_prefix.sh

index 8c49af98fa5723a88c6b9b286a8550a80343ece4..df9c0a2bef817c1420233c2f2423b4f9d709cb6d 100755 (executable)
@@ -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