summaryrefslogtreecommitdiff
path: root/.gitignore
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 /.gitignore
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 '.gitignore')
-rw-r--r--.gitignore3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 823129fce..d58329c51 100644
--- a/.gitignore
+++ b/.gitignore
@@ -98,3 +98,6 @@ stamp-*
/troff
/xtotroff
/gendef.sh
+/.version
+/cscope.out
+/build