Fix replace-interpreter.sh to use doble quotes in sed.

--HG--
extra : convert_revision : 9159fb23ddb11d4980276064f4d7aebad1927ad9
This commit is contained in:
Juan RP 2008-10-14 19:22:05 +02:00
parent 105c647e3b
commit b2378e259c

View file

@ -37,11 +37,12 @@ replace_interpreter()
;;
esac
if [ -f $file ]; then
$sed_cmd -e '1s|^#![[:space:]]*\$orsb|#!\$trpath|' \
$file > $file.in && $mv_cmd $file.in $file && \
echo "=> Transformed $lang script: $file."
if [ -f $wrksrc/$file ]; then
$sed_cmd -e "1s|^#![[:space:]]*${orsb}|#!${trpath}|" \
$wrksrc/$file > $wrksrc/$file.in && \
$mv_cmd $wrksrc/$file.in $wrksrc/$file && \
echo "=> Transformed $lang script: ${file##$wrksrc}."
else
echo "=> Ignoring unexistent $lang script: $file."
echo "=> Ignoring unexistent $lang script: ${file##$wrksrc}."
fi
}