Feature #1017 ยป 0054-generate_doc.sh-Sanity-check-parameter.patch
scripts/generate_doc.sh | ||
---|---|---|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
# GNU General Public License for more details.
|
||
. $1/fc_version
|
||
if test "$1" = "" ; then
|
||
echo "Needs freeciv source directory as a parameter!" >&2
|
||
exit 1
|
||
fi
|
||
if test "$1" = "-h" || test "$1" = "--help" ; then
|
||
echo "Usage: $0 <freeciv source directory>"
|
||
exit
|
||
fi
|
||
if ! test -x "$1/fc_version" ; then
|
||
echo "\"$1\" doesn't look like a freeciv source directory (lacking fc_version)" >&2
|
||
exit 1
|
||
fi
|
||
. "$1/fc_version"
|
||
doxy_srcdir="$1/" doxy_version="-${MAIN_VERSION}" doxygen "$1/doc/freeciv.doxygen"
|