summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2018-04-23 06:22:52 -0400
committerG. Branden Robinson <g.branden.robinson@gmail.com>2018-04-23 06:22:52 -0400
commita6c2217cd0a088b649257b87bea4299cbb1e90dd (patch)
tree5599a53ed4805c96faa1aa8f9956c04d22a38c21 /configure.ac
parent3aae1e8939df0e86b3a46318cceb72e0eb774dc8 (diff)
downloadgroff-git-a6c2217cd0a088b649257b87bea4299cbb1e90dd.tar.gz
Document SHORT_VERSION where it is defined.
Leave a breadcrumb in Makefile.am since SHORT_VERSION is logically related but handled by a different layer of GNU Autotools. Further clarify what SHORT_VERSION actually expands to: not just the truncated revision number, but the whole version string _up to_ the truncation point. Signed-off-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index ff89f1183..19d4473a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,8 +25,9 @@ AC_INIT([GNU Troff],
AC_PREREQ([2.62])
-# Version consisting of exactly MAJOR.MINOR.PATCH, stripped of any
-# digit after PATCH.
+# SHORT_VERSION contains only the number of REVISION before the first '.',
+# e.g. if REVISION is '3.real.434-5aafd' then SHORT_VERSION is 'x.yy.3',
+# where x and yy are MAJOR_VERSION and MINOR_VERSION, respectively.
AC_SUBST([SHORT_VERSION],
m4_bregexp(AC_PACKAGE_VERSION,[^\(\w+\.\w+\.\w+\).*$],[\1]))