aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar David Adam (zanchey) <zanchey@ucc.gu.uwa.edu.au>2013-06-24 18:12:09 +0800
committerGravatar David Adam (zanchey) <zanchey@ucc.gu.uwa.edu.au>2013-08-11 23:13:38 +0800
commit2a06c72113fb4a7032621387751d5c9c945936ae (patch)
tree5c2f0816e14500f43035726d98bb3a039d10bf6d /env.cpp
parent05563ab11ee30fbf698c0bbfcb9f98e2533a0a1d (diff)
Generate version numbers dynamically
This commit hooks the Makefile up to generate a FISH_BUILD_VERSION symbol and kills off PACKAGE_VERSION in .cpp files. It also modifies the tarball generation script to add the necessary version file for releases.
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.cpp b/env.cpp
index ddb5d2c4..a99f1812 100644
--- a/env.cpp
+++ b/env.cpp
@@ -667,7 +667,7 @@ void env_init(const struct config_paths_t *paths /* or NULL */)
/*
Set up the version variables
*/
- wcstring version = str2wcstring(PACKAGE_VERSION);
+ wcstring version = str2wcstring(FISH_BUILD_VERSION);
env_set(L"version", version.c_str(), ENV_GLOBAL);
env_set(L"FISH_VERSION", version.c_str(), ENV_GLOBAL);