X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=generate-jsdoc.sh;h=1468cac3bfde4df8662e35661ec26a5990139fec;hb=c12450f169e3d58875caf967f87c0f9d9d314dba;hp=36b6c501d4ac7f94c09aea1a36dd656e1c1d9044;hpb=c39e1d9346b695648dc7dc0c2d08bf057aefb069;p=dygraphs.git diff --git a/generate-jsdoc.sh b/generate-jsdoc.sh index 36b6c50..1468cac 100755 --- a/generate-jsdoc.sh +++ b/generate-jsdoc.sh @@ -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