Closure fix type Dyraph->Dygraph.
[dygraphs.git] / generate-jsdoc.sh
index 36b6c50..6512fb0 100755 (executable)
@@ -7,10 +7,13 @@ echo Generating JSDoc...
 java -jar jsdoc-toolkit/jsrun.jar \
   jsdoc-toolkit/app/run.js \
   -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \
-  dygraph.js > /tmp/dygraphs-jsdocerrors.txt
+  dygraph.js \
+| tee /tmp/dygraphs-jsdocerrors.txt
 
-if [ -n /tmp/dygraphs-jsdocerrors.txt ]; then
+if [ -s /tmp/dygraphs-jsdocerrors.txt ]; then
   echo Please fix any jsdoc errors/warnings before sending patches.
 fi
 
+chmod -R a+rX jsdoc
+
 echo Done