mirror of
https://github.com/halpz/re3.git
synced 2025-07-23 15:19:45 +00:00
Remove version text, add toggleable debug info(with commit hash!)
This commit is contained in:
14
printHash.sh
Normal file
14
printHash.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
> $1
|
||||
|
||||
echo -n "#define GIT_SHA1 \"" > $1
|
||||
|
||||
git --version 2>&1 >/dev/null
|
||||
GIT_IS_AVAILABLE=$?
|
||||
if [ $GIT_IS_AVAILABLE -ne 0 ]; then
|
||||
git rev-parse --short HEAD | tr -d '\n' >> $1
|
||||
fi
|
||||
|
||||
echo "\"" >> $1
|
||||
echo "const char* g_GIT_SHA1 = GIT_SHA1;" >> $1
|
Reference in New Issue
Block a user