mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-28 20:55:11 +00:00
9ecd73d956
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
18 lines
378 B
C++
18 lines
378 B
C++
/** \file fish_version.c Fish version receiver.
|
|
|
|
This file has a specific purpose of shortening compilation times when
|
|
the only change is different `git describe` version.
|
|
*/
|
|
|
|
#include "fish_version.h"
|
|
|
|
#ifndef FISH_BUILD_VERSION
|
|
#include "fish-build-version.h"
|
|
#endif
|
|
|
|
/**
|
|
* Return fish shell version.
|
|
*/
|
|
const char *get_fish_version() {
|
|
return FISH_BUILD_VERSION;
|
|
}
|