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.
This commit is contained in:
David Adam (zanchey) 2013-06-24 18:15:47 +08:00
parent 2a06c72113
commit 8cdcfc2a91

View file

@ -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=$@