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

contrib: Retain permission on files (fixme).

parent af384e2f
...@@ -63,6 +63,7 @@ for file in $files; do ...@@ -63,6 +63,7 @@ for file in $files; do
done done
elif test ".`file $file | grep \"text\|shell\"`" != "." ; then elif test ".`file $file | grep \"text\|shell\"`" != "." ; then
echo "Fixing up shell/text file "$file"" echo "Fixing up shell/text file "$file""
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
fi fi
...@@ -71,6 +72,7 @@ done ...@@ -71,6 +72,7 @@ done
files=`find . -name *.la` files=`find . -name *.la`
for file in $files; do for file in $files; do
echo "Fixing up .la $file" echo "Fixing up .la $file"
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
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