r.js 276 B

123456789101112131415
  1. #!/bin/sh
  2. basedir=`dirname "$0"`
  3. case `uname` in
  4. *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
  5. esac
  6. if [ -x "$basedir/node" ]; then
  7. "$basedir/node" "$basedir/../requirejs/bin/r.js" "$@"
  8. ret=$?
  9. else
  10. node "$basedir/../requirejs/bin/r.js" "$@"
  11. ret=$?
  12. fi
  13. exit $ret