Commit ccdfdfdf authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

contrib: Also fix up .pc file on Mac OS X.

parent 544625f1
...@@ -45,7 +45,7 @@ fi ...@@ -45,7 +45,7 @@ fi
cd $top_dir cd $top_dir
pwd pwd
files=`find . -type f` files=`find . -type f`
for file in $files; do for file in $files; do
if test ".`file $file | grep Mach-O`" != "." ; then if test ".`file $file | grep Mach-O`" != "." ; then
echo "Changing prefixes of '$file'" echo "Changing prefixes of '$file'"
islib=n islib=n
...@@ -64,11 +64,13 @@ for file in $files; do ...@@ -64,11 +64,13 @@ for file in $files; do
fi fi
fi fi
done done
elif test ".`file $file | grep \"text\|shell\"`" != "." ; then elif test ".`file $file | grep \"text\|shell\"`" != "." -o ".`echo $file | grep pc$`" != "."; then
echo "Fixing up shell/text file "$file"" echo "Fixing up shell/text/pc file "$file""
cp $file $file.tmp cp $file $file.tmp
sed -e "s,$prefix,$new_prefix,g" < $file > $file.tmp sed -e "s,$prefix,$new_prefix,g" < $file > $file.tmp
mv -f $file.tmp $file mv -f $file.tmp $file
else
echo "Not doing anything with $file"
fi fi
done done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment