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
1 changed files with 6 additions and 5 deletions

View File

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