esparse 393 B

12345678910111213141516
  1. #!/bin/sh
  2. basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
  3. case `uname` in
  4. *CYGWIN*|*MINGW*|*MSYS*)
  5. if command -v cygpath > /dev/null 2>&1; then
  6. basedir=`cygpath -w "$basedir"`
  7. fi
  8. ;;
  9. esac
  10. if [ -x "$basedir/node" ]; then
  11. exec "$basedir/node" "$basedir/../esprima/bin/esparse.js" "$@"
  12. else
  13. exec node "$basedir/../esprima/bin/esparse.js" "$@"
  14. fi