tools/docgen.sh
author Wuzzy <almikes@aol.com>
Sat, 07 Oct 2017 03:43:06 +0200
changeset 12665 5664ec82aed7
parent 11515 4dd77731453b
permissions -rwxr-xr-x
Rework weapon scheme handling in frontend and fix a couple of bugs There were many oddities in weapon scheme editing which are fixed now: * When you left the weapon scheme editor, everything flashed briefly * When you leaft the weapon scheme editr, the weapon scheme selection always reverted to Default. Very annoying * Clicking on New or Copy now instantly creates and save the new weapons set

#!/bin/sh


if [ -d QTfrontend ]; then
	cd QTfrontend
else
	if [ -d ../QTfrontend ]; then
		cd ../QTfrontend
	else
		echo 'abort: Directory "QTfrontend" not found!' >&2
		exit 1
	fi
fi

if [ -z "$1" ]; then
	OUTPUT_DIRECTORY="../doc/QTfrontend"
else
	OUTPUT_DIRECTORY="$1"
fi

echo "Creating documentation for Qt-Frontend in $OUTPUT_DIRECTORY ..."

if [ $(which hg) ]; then

branch=$(hg identify -b)
rev=$(hg identify -rdefault -i)

export PROJECT_NUMBER="${branch} branch, ${rev}"
export OUTPUT_DIRECTORY

fi

doxygen
exit $?