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:
David Adam (zanchey)
2013-06-24 18:12:09 +08:00
parent 05563ab11e
commit 2a06c72113
8 changed files with 26 additions and 9 deletions

View File

@@ -344,7 +344,7 @@ int main(int argc, char **argv)
fwprintf(stderr,
_(L"%ls, version %s\n"),
program_name,
PACKAGE_VERSION);
FISH_BUILD_VERSION);
exit(0);
}