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