From 04937bcec93311c24398e42580cf8a99bb113ad3 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 5 Jan 2024 13:55:47 +0200 Subject: [PATCH 29/29] 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 7032badb53..238605dde3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -99,6 +99,7 @@ EXTRA_DIST = autogen.sh \ m4/testmatic.m4 \ meson.build \ meson_options.txt \ + scripts/generate_doc.sh \ scripts/mapimg2anim \ scripts/setup_auth_server.sh \ scripts/replace \ @@ -114,6 +115,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