mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 12:11:20 -03:00
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.
This commit is contained in:
2
env.cpp
2
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user