From aade5c60353925efdba206bbc49a824abe71c9c5 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Tue, 10 Jan 2012 11:26:16 -0500 Subject: [PATCH] push-to-web short-circuits when generate-jsdoc fails. --- push-to-web.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/push-to-web.sh b/push-to-web.sh index 9ff6cd1..5e0afbc 100755 --- a/push-to-web.sh +++ b/push-to-web.sh @@ -14,12 +14,16 @@ site=$1 # Generate documentation. ./generate-documentation.py > docs/options.html -./generate-jsdoc.sh +if [ -s docs/options.html ] ; then + ./generate-jsdoc.sh -# Copy everything to the site. -scp -r tests jsdoc experimental $site \ -&& \ -scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/ + # Copy everything to the site. + scp -r tests jsdoc experimental $site \ + && \ + scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/ +else + echo "generate-documentation.py failed" +fi # Revert changes to dygraph-combined.js and docs/options.html git checkout dygraph-combined.js -- 2.7.4