From 56f4f4465fb3d71116992d7cfa0308486f71f23c Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Sat, 21 Dec 2024 18:55:12 +0100 Subject: [PATCH 01/19] configure.ac: derive NUT_WEBSITE_BASE from PACKAGE_URL [#722] Signed-off-by: Jim Klimov --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index f69bce4b19..1d58de5a52 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,14 @@ AC_INIT([nut], dnl See docs/maintainer-guide.txt about releases - updating the version dnl above is a small part of the consistent ritual! +dnl PACKAGE_URL="https://www.networkupstools.org/" for development iterations +dnl or "https://www.networkupstools.org/historic/v1.2.3/index.html" for release +dnl snapshots further set in stone. Either way, there should be a slash and +dnl either a filename, or nothing. Adding a bogus filename and chopping it +dnl off by `dirname` should do the trick. +dnl NOTE: the resulting NUT_WEBSITE_BASE string does not end with a slash! +NUT_WEBSITE_BASE="`dirname "${PACKAGE_URL}index.html"`" + dnl Note: this refers to GITREV at the time of configure script running dnl primarily for better messaging in the script itself (also to render dnl the PDF documentation revision history via docs/docinfo.xml.in). @@ -747,6 +755,8 @@ AS_IF([test x"${NUT_SOURCE_GITREV}" = x], [NUT_REPORT([configured version], [${PACKAGE_VERSION} ${NUT_SOURCE_GITREV_DEVREL}])], [NUT_REPORT([configured version], [${PACKAGE_VERSION} (${NUT_SOURCE_GITREV}) ${NUT_SOURCE_GITREV_DEVREL}])]) ]) +NUT_REPORT([Documentation website base URL], [${NUT_WEBSITE_BASE}]) +AC_DEFINE_UNQUOTED([NUT_WEBSITE_BASE], "${NUT_WEBSITE_BASE}", [Documentation website base URL, no trailing slash]) dnl Note: the compiler/pragma/attr methods below are custom for NUT codebase: NUT_COMPILER_FAMILY @@ -4832,6 +4842,7 @@ AC_SUBST(NUT_SOURCE_GITREV) AC_SUBST(NUT_SOURCE_GITREV_IS_RELEASE) AC_SUBST(NUT_SOURCE_GITREV_SEMVER) AC_SUBST(NUT_SOURCE_GITREV_NUMERIC) +AC_SUBST(NUT_WEBSITE_BASE) AC_SUBST(LIBSSL_CFLAGS) AC_SUBST(LIBSSL_LIBS) AC_SUBST(LIBSSL_LDFLAGS_RPATH) From a46ddabc7548f60ae14406d9ecec943ba6b9daf9 Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Sat, 21 Dec 2024 19:20:44 +0100 Subject: [PATCH 02/19] scripts/Solaris/*.xml.in: revise heading comments and documentation links [#722] Signed-off-by: Jim Klimov --- scripts/Solaris/nut-driver-enumerator.xml.in | 16 +++++++----- scripts/Solaris/nut-driver.xml.in | 14 +++++----- scripts/Solaris/nut-monitor.xml.in | 18 +++++++------ scripts/Solaris/nut-server.xml.in | 27 ++++++++++---------- 4 files changed, 41 insertions(+), 34 deletions(-) diff --git a/scripts/Solaris/nut-driver-enumerator.xml.in b/scripts/Solaris/nut-driver-enumerator.xml.in index f935b8c066..fc5097a410 100644 --- a/scripts/Solaris/nut-driver-enumerator.xml.in +++ b/scripts/Solaris/nut-driver-enumerator.xml.in @@ -2,14 +2,14 @@ - + - + - + - +