mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Merge pull request #88 from themadhatter/master
I symlinked the jsdoc script into ~/bin ; and found that the paths were not correctly set. This commit fixes that problem.
This commit is contained in:
commit
e11e556cfb
6
jsdoc
6
jsdoc
@ -1,7 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# rhino discards the path to the current script file, so we must add it back
|
||||
BASEDIR=`dirname $0`
|
||||
SOURCE="$0"
|
||||
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
||||
BASEDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
java -classpath ${BASEDIR}/lib/js.jar org.mozilla.javascript.tools.shell.Main -modules ${BASEDIR}/node_modules -modules ${BASEDIR}/rhino_modules -modules ${BASEDIR} ${BASEDIR}/jsdoc.js --dirname=${BASEDIR} $@
|
||||
|
||||
#java -classpath ${BASEDIR}/lib/js.jar org.mozilla.javascript.tools.debugger.Main -debug -modules ${BASEDIR}/node_modules -modules ${BASEDIR}/rhino_modules -modules ${BASEDIR} ${BASEDIR}/jsdoc.js --dirname=${BASEDIR} $@
|
||||
#java -classpath ${BASEDIR}/lib/js.jar org.mozilla.javascript.tools.debugger.Main -debug -modules ${BASEDIR}/node_modules -modules ${BASEDIR}/rhino_modules -modules ${BASEDIR} ${BASEDIR}/jsdoc.js --dirname=${BASEDIR} $@
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user