mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-26 22:11:51 +00:00
02589839cd
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)
9 lines
380 B
Batchfile
9 lines
380 B
Batchfile
@echo off
|
|
FOR /F "tokens=* USEBACKQ" %%F IN (`git rev-parse HEAD`) DO (
|
|
SET GIT_COMMIT_HASH=%%F
|
|
)
|
|
FOR /F "tokens=* USEBACKQ" %%F IN (`git rev-parse --abbrev-ref HEAD`) DO (
|
|
SET GIT_BRANCH_NAME=%%F
|
|
)
|
|
:: We create the file in one go to avoid doubled lines in multi-threaded builds.
|
|
(echo #define GIT_COMMIT ^"%GIT_COMMIT_HASH%^" && echo #define GIT_BRANCH ^"%GIT_BRANCH_NAME%^")>%1
|