SearchResultSet: remove hasResults(), unused
[mediawiki.git] / maintenance / mwjsduck-gen
blob5247637bb127f35d4e8dae616bdb4873ec9ad4ff
1 #!/usr/bin/env bash
2 set -e
4 JSDUCK_MWVERSION=master
5 if [[ "$1" == "--version" && "$2" != "" ]]
6 then
7 JSDUCK_MWVERSION="$2"
8 elif [[ "$*" != "" ]]
9 then
10 FILENAME=$(basename $0)
11 echo "Usage: $FILENAME [--version <mediawiki version>]"
12 echo
13 exit 1
16 MWCORE_DIR=$(cd $(dirname $0)/..; pwd)
18 jsduck \
19 --config=$MWCORE_DIR/maintenance/jsduck/config.json \
20 --footer="Documentation for branch ($JSDUCK_MWVERSION) on {DATE} by {JSDUCK} {VERSION}." \
21 --processes 0
23 echo 'JSDuck execution finished.'
25 ln -s ../../resources $MWCORE_DIR/docs/js/modules