Fix replace-interpreter.sh to use doble quotes in sed.
--HG-- extra : convert_revision : 9159fb23ddb11d4980276064f4d7aebad1927ad9
This commit is contained in:
parent
105c647e3b
commit
b2378e259c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue