working generate-jsdoc script
authorDan Vanderkam <dan@dygraphs.com>
Mon, 9 May 2011 14:36:58 +0000 (07:36 -0700)
committerDan Vanderkam <dan@dygraphs.com>
Mon, 9 May 2011 14:36:58 +0000 (07:36 -0700)
dygraph.js
generate-jsdoc.sh

index 90c93a9..661603c 100644 (file)
@@ -89,7 +89,7 @@ Dygraph.AXIS_LINE_WIDTH = 0.3;
 
 Dygraph.LOG_SCALE = 10;
 Dygraph.LN_TEN = Math.log(Dygraph.LOG_SCALE);
-/** @private (shut up, jsdoc!) */
+/** @private */
 Dygraph.log10 = function(x) {
   return Math.log(x) / Dygraph.LN_TEN;
 }
@@ -389,17 +389,17 @@ Dygraph.prototype.log = function(severity, message) {
   }
 };
 
-/** @private (shut up, jsdoc!) */
+/** @private */
 Dygraph.prototype.info = function(message) {
   this.log(Dygraph.INFO, message);
 };
 
-/** @private (shut up, jsdoc!) */
+/** @private */
 Dygraph.prototype.warn = function(message) {
   this.log(Dygraph.WARNING, message);
 };
 
-/** @private (shut up, jsdoc!) */
+/** @private */
 Dygraph.prototype.error = function(message) {
   this.log(Dygraph.ERROR, message);
 };
index 36b6c50..1468cac 100755 (executable)
@@ -7,9 +7,10 @@ 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