aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Adam (zanchey) <zanchey@ucc.gu.uwa.edu.au>2013-06-24 18:15:47 +0800
committerGravatar David Adam (zanchey) <zanchey@ucc.gu.uwa.edu.au>2013-08-11 23:13:38 +0800
commit8cdcfc2a911a2fe3281cbf91351d817416a9d936 (patch)
treed1120acc245461ccd7ff9b2c2f497474443aee38
parent2a06c72113fb4a7032621387751d5c9c945936ae (diff)
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.
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 185fc96b..fb260eb5 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=$@