2011-03-26 14:10:41 +01:00
|
|
|
#!/bin/sh
|
|
|
|
if [ ! -x /usr/bin/java ]; then
|
|
|
|
echo "You need to install Java to generate the JSDocs!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2011-04-07 19:54:41 +02:00
|
|
|
if [ -d "../bin" ]; then
|
|
|
|
cd "../"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "doc/jsdoc-toolkit"
|
2011-03-26 14:10:41 +01:00
|
|
|
|
|
|
|
JSRUN="jsrun.jar"
|
|
|
|
RUNJS="app/run.js"
|
|
|
|
OUTPUT_DIR="../jsdoc"
|
|
|
|
NODE_DIR="../../node"
|
|
|
|
TEMPLATE_DIR="templates/jsdoc"
|
|
|
|
|
|
|
|
java -jar $JSRUN $RUNJS -v -d=$OUTPUT_DIR -t=$TEMPLATE_DIR $NODE_DIR &&
|
|
|
|
echo "Look on http://code.google.com/p/jsdoc-toolkit/wiki/InlineDocs to get Tipps for better documentation"
|