diff options
author | Ian Ray <ianjray@me.com> | 2015-09-27 10:13:01 +0300 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-09-29 14:55:51 -0700 |
commit | 9ecd73d956198ea0c545db8769471e5ea8c8fb02 (patch) | |
tree | ebc2c65c3a72452cd49fc9c286f9052a78ad9fe4 /src | |
parent | b9b39f7c31d2514788f7b3bbacb966ad15578b5e (diff) |
Generate version numbers for Xcode builds
Teach Xcode to run new script xcode_version_gen.sh before building
the fish_shell and fish_indent targets. The script generates file
fish-build-version.h for inclusion by fish_version.cpp.
Note that Xcode always runs the script because of the phony target
named force-fish-build-version.h, but fish-build-version.h is only
touched if the contents of FISH-BUILD-VERSION-FILE change.
Fixes #890
Diffstat (limited to 'src')
-rw-r--r-- | src/fish_version.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fish_version.cpp b/src/fish_version.cpp index e434c3c8..c4eb15df 100644 --- a/src/fish_version.cpp +++ b/src/fish_version.cpp @@ -6,6 +6,10 @@ #include "fish_version.h" +#ifndef FISH_BUILD_VERSION +#include "fish-build-version.h" +#endif + /** * Return fish shell version. */ |