Do not hardcode the node binary

This commit is contained in:
Frank Denis 2015-01-18 00:52:14 +01:00
parent 33357dc52e
commit 00f8156457

View File

@ -37,12 +37,11 @@ echo 'Compiling the test suite...' && \
emmake make $MAKE_FLAGS check > /dev/null 2>&1
echo 'Running the test suite.'
echo 'sodium_utils2 and sodium_utils3 are expected to fail in Javascript.'
(
cd test/default && \
for file in *.js; do
echo "#! /usr/bin/env ${NODE}" > "${file}.tmp"
fgrep -v '#! /usr/bin/env node' "$file" >> "${file}.tmp"
fgrep -v "#! /usr/bin/env {NODE}" "$file" >> "${file}.tmp"
chmod +x "${file}.tmp"
mv -f "${file}.tmp" "$file"
done