define new GIT_ values blank when .git is missing

This commit is contained in:
2024-09-15 09:39:58 -05:00
committed by Celtic Minstrel
parent 46f48b94ed
commit 71416f6fc5

View File

@@ -114,7 +114,7 @@ else:
# Zipped source downloads from github do not include the repo (probably a good thing)
# TODO: This does not work on Windows
env.Command('src/tools/gitrev.hpp', '', r"""
echo -e "\n#define GIT_REVISION \"\"\n#define GIT_TAG \"\"\n#define GIT_TAG_REVISION \"\"\n" > #TARGET
echo -e "\n#define GIT_REVISION \"\"\n#define GIT_TAG \"\"\n#define GIT_TAG_REVISION \"\"\n#define GIT_STATUS \"\"\n#define GIT_REPO \"\"\n" > #TARGET
""")
if platform == "darwin":