cnq3/makefiles/create_git_header.sh
myT 02589839cd renamed /build to /makefiles
outputting to /.build (temp) and /.bin (final) instead of ../.bin
removed the premake option "quake3dir"
on Linux, not copying files if $QUAKE3DIR is undefined/empty
on Linux, compiling all C++ code with -std=c++98
added a meta-Makefile at the root for convenience
added build documentation (build.md)
2017-08-01 22:30:04 +02:00

6 lines
179 B
Bash
Executable file

#!/bin/bash
COMMIT="$(git rev-parse HEAD)"
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
echo "#define GIT_COMMIT \"${COMMIT}\"" > $1
echo "#define GIT_BRANCH \"${BRANCH}\"" >> $1