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
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
......
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