From 8cdcfc2a911a2fe3281cbf91351d817416a9d936 Mon Sep 17 00:00:00 2001 From: "David Adam (zanchey)" Date: Mon, 24 Jun 2013 18:15:47 +0800 Subject: [PATCH] configure.ac: generate the fish version number dynamically Note that this will NOT get updated on every run - even if autoconf is run manually, the value may be cached. The PACKAGE_VERSION variable/symbol will not be reliable. Use FISH_BUILD_VERSION instead. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 185fc96b2..fb260eb55 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,11 @@ # configure the build process. # -AC_INIT(fish,2.0.0,fish-users@lists.sf.net) +m4_syscmd([build_tools/git_version_gen.sh 2>/dev/null]) + +AC_INIT(fish, + m4_esyscmd_s([cut -f 3 -d ' ' FISH-BUILD-VERSION-FILE]), + fish-users@lists.sf.net) conf_arg=$@