Files
MINGW-packages/mingw-w64-nodejs/node-gyp
2015-03-21 18:45:32 +01:00

18 lines
428 B
Bash

#!/bin/sh
(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
basedir=`dirname "$0"`
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node.exe" ]; then
"$basedir/node.exe" "$basedir/../lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "$@"
ret=$?
else
node "$basedir/../lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "$@"
ret=$?
fi
exit $ret