From 89cf838f0e3a263ee9046dccc21161972326e537 Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Fri, 4 Mar 2022 18:37:39 +0000
Subject: [PATCH] configure.ac: Add "pre-" also on man pages.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5347 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 smartmontools/ChangeLog    | 2 ++
 smartmontools/configure.ac | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index 4e5c365e1..1f457d63a 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -2,6 +2,8 @@ $Id$
 
 2022-03-04  Christian Franke  <franke@computer.org>
 
+	configure.ac: Add "pre-" also on man pages.
+
 	smartd.8.in: Attribute logs use local time since smartmontools 7.1.
 
 	smartctl.8.in, smartd.conf.5.in, update-smart-drivedb.8.in:
diff --git a/smartmontools/configure.ac b/smartmontools/configure.ac
index d8f539536..d70c30d3a 100644
--- a/smartmontools/configure.ac
+++ b/smartmontools/configure.ac
@@ -16,6 +16,10 @@ smartmontools_release_time= # "16:33:40 UTC"
 if test -n "$smartmontools_release_date"; then
   AC_DEFINE_UNQUOTED(SMARTMONTOOLS_RELEASE_DATE, "$smartmontools_release_date",    [smartmontools Release Date])
   AC_DEFINE_UNQUOTED(SMARTMONTOOLS_RELEASE_TIME, "$smartmontools_release_time",    [smartmontools Release Time])
+  AC_SUBST(releaseversion, ['${PACKAGE}-${VERSION}'])
+else
+  # Add "pre-" also on man pages.
+  AC_SUBST(releaseversion, ['${PACKAGE}-pre-${VERSION}'])
 fi
 
 smartmontools_cvs_tag=`echo '$Id$'`
@@ -613,10 +617,6 @@ else
 fi
 AM_CONDITIONAL(NEED_REGEX, [test "$need_regex" = "yes"])
 
-AC_SUBST(releaseversion,['${PACKAGE}-${VERSION}'])
-AC_SUBST(smartmontools_release_date)
-AC_SUBST(smartmontools_release_time)
-
 # Set platform-specific modules and symbols
 os_libs=
 os_dltools='curl wget lynx svn'
-- 
GitLab