AboutSummaryRefsLogTreeCommitDiffStats
path: root/configure.ac
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2016-12-28 23:06:03 +0100
committerMathieu Lirzin <mthl@gnu.org>2016-12-28 23:06:03 +0100
commita3051133c0370abcbff266441e177ce81920457a (patch)
treea7257541bf079d6572d403151b1e7bc4aeba3798 /configure.ac
parent5e6233a58dab5b22cadffdfd16505a440808a659 (diff)
downloadmcron-a3051133c0370abcbff266441e177ce81920457a.tar.gz
mcron-a3051133c0370abcbff266441e177ce81920457a.tar.bz2
mcron-a3051133c0370abcbff266441e177ce81920457a.zip
maint: Generate version number.
* build-aux/git-version-gen: New script. * configure.ac (AC_INIT): Use it. (AC_REQUIRE_AUX_FILE): Distribute it. * Makefile.am (.version): New target. (BUILT_SOURCES, EXTRA_DIST): Add it. (dist-hook): Generate ".tarball-version". * .gitignore: Update.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 97c900b..5940555 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,10 +19,13 @@
# along with GNU Mcron. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ(2.61)
-AC_INIT([GNU Mcron], [1.0.8], [bug-mcron@gnu.org])
+AC_INIT([GNU Mcron],
+ m4_esyscmd([build-aux/git-version-gen .tarball-version]),
+ [bug-mcron@gnu.org])
AC_CONFIG_SRCDIR([src/wrapper.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_REQUIRE_AUX_FILE([test-driver.scm])
+AC_REQUIRE_AUX_FILE([git-version-gen])
AM_INIT_AUTOMAKE([subdir-objects -Wall -Wno-override])
AM_SILENT_RULES([yes]) # enables silent rules by default