fix Revision.cc generation

This commit is contained in:
Martin Michelsen
2023-12-23 10:23:40 -08:00
parent 3823fc94f1
commit 3991d7b534
2 changed files with 14 additions and 2 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
#!/bin/sh
OUTPUT_FILENAME="$1"
GIT_REVISION_HASH=$(git rev-parse --short HEAD)
TIMESTAMP_SECS=$(date +%s)
@@ -11,7 +13,7 @@ else
fi
fi
cat > Revision.cc <<EOF
cat > $OUTPUT_FILENAME <<EOF
#include "Revision.hh"
const char* GIT_REVISION_HASH = "$GIT_REVISION_HASH";