From 33f46b1770d19570d1a3ad5c7a246cf7268708eb Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 5 Jan 2024 13:59:04 +0200 Subject: [PATCH 22/22] Move doxygen documentation creation to a separate script This way it can be used also without autotools based build system See osdn #45704 Signed-off-by: Marko Lindqvist --- Makefile.am | 3 ++- scripts/generate_doc.sh | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 scripts/generate_doc.sh diff --git a/Makefile.am b/Makefile.am index f784e1e32e..49f0e1b277 100644 --- a/Makefile.am +++ b/Makefile.am @@ -98,6 +98,7 @@ EXTRA_DIST = autogen.sh \ platforms/flatpak/org.freeciv.sdl2.yml \ platforms/flatpak/org.freeciv.ruledit.yml \ platforms/macos/homebrew-appbundle.sh \ + scripts/generate_doc.sh \ scripts/mapimg2anim \ scripts/setup_auth_server.sh \ scripts/replace \ @@ -113,6 +114,6 @@ src-check: cd tests && $(MAKE) $(AM_MAKEFLAGS) src-check doc: - doxy_srcdir="$(top_srcdir)/" doxy_version="-$(MAIN_VERSION)" doxygen $(top_srcdir)/doc/freeciv.doxygen + "$(top_srcdir)/scripts/generate_doc.sh" "$(top_srcdir)" .PHONY: src-check doc diff --git a/scripts/generate_doc.sh b/scripts/generate_doc.sh new file mode 100755 index 0000000000..2fe81295b5 --- /dev/null +++ b/scripts/generate_doc.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# Freeciv - Copyright (C) 2022-2023 The Freeciv Team +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +. $1/fc_version + +doxy_srcdir="$1/" doxy_version="-${MAIN_VERSION}" doxygen "$1/doc/freeciv.doxygen" -- 2.43.0