aboutsummaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-25 22:09:22 +0100
committergingerBill <bill@gingerbill.org>2021-04-25 22:09:22 +0100
commit2af8e956a60a35bb9eab8b6c50d82de2dfe10a9b (patch)
tree27597124ede97fa04dc650f14e8c533a938e587f /build.bat
parent9ed826f6fb4099af88f59e57bceba1239ae58bf1 (diff)
Change versioning system from `v0.13.1` to `dev-2021-04`
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.bat b/build.bat
index e76ae0c38..782ce4e91 100644
--- a/build.bat
+++ b/build.bat
@@ -1,5 +1,10 @@
@echo off
+setlocal EnableDelayedExpansion
+
+set curr_year=%DATE:~-4%
+set curr_month=%DATE:~3,2%
+
:: Make sure this is a decent name and not generic
set exe_name=odin.exe
@@ -19,8 +24,11 @@ if "%2" == "1" (
set nightly=0
)
+set odin_version_raw="dev-%curr_year%-%curr_month%"
+
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -EHsc- -GR- -GF
set compiler_defines=
+rem -DODIN_VERSION_RAW=%odin_version_raw%
for /f %%i in ('git rev-parse --short HEAD') do set GIT_SHA=%%i
if %ERRORLEVEL% equ 0 set compiler_defines=%compiler_defines% -DGIT_SHA=\"%GIT_SHA%\"