mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 03:24:15 +01:00
12 lines
206 B
Bash
Executable File
12 lines
206 B
Bash
Executable File
#!/bin/bash
|
|
|
|
> $1
|
|
|
|
echo -n "#define GIT_SHA1 \"" > $1
|
|
|
|
if (command -v "git" >/dev/null) then
|
|
git rev-parse --short HEAD | tr -d '\n' >> $1
|
|
fi
|
|
|
|
echo "\"" >> $1
|
|
echo "const char* g_GIT_SHA1 = GIT_SHA1;" >> $1 |