summaryrefslogtreecommitdiff
path: root/bootstrap.conf
diff options
context:
space:
mode:
authorBertrand Garrigues <bertrand.garrigues@laposte.net>2018-01-14 00:04:13 +0100
committerBertrand Garrigues <bertrand.garrigues@laposte.net>2018-02-02 00:37:50 +0100
commit126453131024933ec17b9f22701decdf36275bc4 (patch)
tree1ee9ffba320c8af0d9a6a0e2dc5071e73e3de62f /bootstrap.conf
parent42544e45265a891ca2b821407ae8748f37554e0a (diff)
downloadgroff-git-126453131024933ec17b9f22701decdf36275bc4.tar.gz
Use gnulib script 'git-version-gen' to define groff's version
* bootstrap.conf: add 'git-version-gen' script. * configure.ac: suppress 'GROFF_VERSION_STRING' and replace it by the script. If the current commit corresponds to a tag, then the version is simply the tag name. Otherwise the version has the format: <tag>-<nb_commits_from_latest_tag>-<commit sha1>. The version is now stored in '.version'. * REVISION: removed. * VERSION: removed. * Makefile.am: define 'MAJOR_VERSION', 'MINOR_VERSION' and 'REVISION'. * src/libs/libgroff/libgroff.am: use 'MAJOR_VERSION', 'MINOR_VERSION' and 'REVISION', add dependency on '.version'. * src/roff/troff/troff.am: ditto. * contrib/mom/om.tmac-u (short_revision): new string that extracts the first digit of the revision, to be used when checking groff version.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r--bootstrap.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index dc392076d..deda4f601 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -36,6 +36,7 @@ checkout_only_file=README.git
# havelib provides config.rpath
# can be get through gettext though
gnulib_modules="
+ git-version-gen
havelib
non-recursive-gnulib-prefix-hack
wcwidth