mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
0a4883a6b8
Closes #4671.
13 lines
309 B
Bash
Executable File
13 lines
309 B
Bash
Executable File
#!/bin/bash
|
|
# Expects to be called from Xcode (Run Script build phase),
|
|
# write version number C preprocessor macro to header file.
|
|
|
|
ver="$SCRIPT_OUTPUT_FILE_0"
|
|
|
|
./build_tools/git_version_gen.sh
|
|
|
|
cmp --quiet "FISH-BUILD-VERSION-FILE" "$ver"
|
|
if [ $? -ne 0 ]; then
|
|
/bin/cp FISH-BUILD-VERSION-FILE "$ver"
|
|
fi
|