mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
d6478ec548
* Make more like mediawiki-core's mwjsduckgen. - Use bash set -e to have the script abort early when any part of it fails (especially the jsduck command). - Since it will abort early, we don't need the 'test' for the symlink. If jsduck succeeded, it will have re-created the docs directory and thus not have the symlink yet. - Don't "cd" into anything from the script, simply use absolute paths instead. Both jsduck and ln support this. Change-Id: I03c02d590e0f696c78da87ff638bb407e48a7cd7
10 lines
237 B
Bash
Executable file
10 lines
237 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
REPO_DIR=$(cd $(dirname $0)/..; pwd)
|
|
|
|
# Disable parallel processing which seems to be causing problems under Ruby 1.8
|
|
jsduck --config $REPO_DIR/.docs/config.json --processes 0
|
|
|
|
ln -s ../lib $REPO_DIR/docs/lib
|