summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBertrand Garrigues <bertrand.garrigues@laposte.net>2018-03-27 23:34:06 +0200
committerBertrand Garrigues <bertrand.garrigues@laposte.net>2018-03-28 00:50:48 +0200
commit00156d87619530e6807a55c27e8965b74762690f (patch)
treec939f5289ffca243c5f716f2618faca279d49b7c /configure.ac
parent1ae2a7c644f60ea7897cf29dbf0c8fd7d8cbac76 (diff)
downloadgroff-git-00156d87619530e6807a55c27e8965b74762690f.tar.gz
Define a short version for data installation dir name.1.22.4.rc2
This is the full version stripped of any characters after the third digit. Used for installation of font, macro and various data (by default in /usr/local/share/groff). The various programs and scripts still use the full version from gnulib script 'git-version-gen' . * configure.ac (SHORT_VERSION): short version definition. * Makefile.am: use 'SHORT_VERSION' for 'docdir' and 'datasubdir' definitions.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 956452615..152ac9185 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,11 @@ AC_INIT([GNU Troff],
AC_PREREQ([2.62])
+# Version consisting of exactly MAJOR.MINOR.PATCH, striped of any
+# digit after PATCH.
+AC_SUBST([SHORT_VERSION],
+ m4_bregexp(AC_PACKAGE_VERSION,[^\(\w+\.\w+\.\w+\).*$],[\1]))
+
# Directories where the helper scripts should be found. This must be consistent
# with the variable build_aux in bootstrap.conf
AC_CONFIG_AUX_DIR([build-aux])