]> git.ipfire.org Git - people/ms/strongswan.git/commit
configure: Optionally use version information obtained from Git in executables
authorTobias Brunner <tobias@strongswan.org>
Tue, 5 May 2020 14:19:09 +0000 (16:19 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 20 Jul 2020 12:10:52 +0000 (14:10 +0200)
commit2e522952c77d9795da68b28f0b4268b6771c5141
tree7d89dfe95b7621e6dd965b73e80885d7740b2bed
parentf77e8c171cbc0b62823c5443ccaa2d67979fe878
configure: Optionally use version information obtained from Git in executables

The variable GIT_VERSION is always defined, either obtained from Git or
a file that is embedded in tarballs when they are built.  Optionally,
that version is declared as VERSION in config.h so it will be used e.g. in
the daemons when they print the version number.

There is a check that should catch missing tags (i.e. if the version number
in AC_INIT() isn't a prefix of the version obtained via Git).
Makefile.am
configure.ac
scripts/Makefile.am
scripts/git-version [new file with mode: 0755]