Xcode build: use the same files as the CMake build for versioning
Closes #4671.
This commit is contained in:
parent
6066e243e0
commit
0a4883a6b8
@ -2,16 +2,11 @@
|
||||
# Expects to be called from Xcode (Run Script build phase),
|
||||
# write version number C preprocessor macro to header file.
|
||||
|
||||
tmp="$SCRIPT_OUTPUT_FILE_1"
|
||||
ver="$SCRIPT_OUTPUT_FILE_0"
|
||||
|
||||
./build_tools/git_version_gen.sh
|
||||
|
||||
cat FISH-BUILD-VERSION-FILE | awk -F= '{printf("#define %s \"%s\"\n",$1,$2)}' > "$tmp"
|
||||
|
||||
cmp --quiet "$tmp" "$ver"
|
||||
cmp --quiet "FISH-BUILD-VERSION-FILE" "$ver"
|
||||
if [ $? -ne 0 ]; then
|
||||
/bin/mv "$tmp" "$ver"
|
||||
else
|
||||
/bin/rm "$tmp"
|
||||
/bin/cp FISH-BUILD-VERSION-FILE "$ver"
|
||||
fi
|
||||
|
@ -1534,8 +1534,7 @@
|
||||
inputPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
"$(SHARED_DERIVED_FILE_DIR)/fish-build-version.h",
|
||||
"$(SHARED_DERIVED_FILE_DIR)/force-fish-build-version.h",
|
||||
"$(SHARED_DERIVED_FILE_DIR)/FISH-BUILD-VERSION-FILE",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user