projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #107 from kberg/master
[dygraphs.git]
/
generate-jsdoc.sh
diff --git
a/generate-jsdoc.sh
b/generate-jsdoc.sh
old mode 100644
(file)
new mode 100755
(executable)
index
3275545
..
1468cac
--- a/
generate-jsdoc.sh
+++ b/
generate-jsdoc.sh
@@
-3,7
+3,15
@@
# Generates JSDoc in the /jsdoc dir. Clears any existing jsdoc there.
rm -rf jsdoc
# Generates JSDoc in the /jsdoc dir. Clears any existing jsdoc there.
rm -rf jsdoc
+echo Generating JSDoc...
java -jar jsdoc-toolkit/jsrun.jar \
jsdoc-toolkit/app/run.js \
java -jar jsdoc-toolkit/jsrun.jar \
jsdoc-toolkit/app/run.js \
- -a -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \
- dygraph.js
+ -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \
+ dygraph.js \
+| tee /tmp/dygraphs-jsdocerrors.txt
+
+if [ -s /tmp/dygraphs-jsdocerrors.txt ]; then
+ echo Please fix any jsdoc errors/warnings before sending patches.
+fi
+
+echo Done