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
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue