Merge "generateDocs.sh: Simplify"

This commit is contained in:
jenkins-bot 2014-05-04 02:43:08 +00:00 committed by Gerrit Code Review
commit 13a7023dd6

View file

@ -1,13 +1,9 @@
#!/usr/bin/env bash
cd $(cd $(dirname $0)/..; pwd)
set -e
REPO_DIR=$(cd $(dirname $0)/..; pwd)
# Disable parallel processing which seems to be causing problems under Ruby 1.8
jsduck --config .docs/config.json --processes 0
ec=$?
jsduck --config $REPO_DIR/.docs/config.json --processes 0
test ! -L docs/lib && ln -s ../lib docs/lib || echo 'Symlink already exists'
cd - > /dev/null
# Exit with exit code of jsduck command
exit $ec
ln -s ../lib $REPO_DIR/docs/lib