Localisation updates from http://translatewiki.net.
[mediawiki.git] / maintenance / mwjsduck-gen
blobbc10bc2c7b39fab74f617fc3e9956e54ac728f4b
1 #!/usr/bin/env bash
3 JSDUCK_MWVERSION=master
4 if [[ "$1" == "--version" && "$2" != "" ]]
5 then
6 JSDUCK_MWVERSION="$2"
7 elif [[ "$*" != "" ]]
8 then
9 echo "Usage $0: [--version <mediawiki version>]"
10 echo
11 exit 1
14 MWCORE_DIR=$(cd $(dirname $0)/..; pwd)
16 jsduck \
17 --config=$MWCORE_DIR/maintenance/jsduck/config.json \
18 --footer="Documentation for MediaWiki core ($JSDUCK_MWVERSION). Generated on {DATE} by {JSDUCK} {VERSION}." \
19 && echo 'JSDuck execution finished.'
21 ln -s ../../resources $MWCORE_DIR/docs/js/modules