Handle non-.git checkout with .relver in .bat-file builds.

Thanks to Simon Cooke.
This commit is contained in:
Mike Pall
2023-08-28 21:59:01 +02:00
parent 14e2917e7a
commit a0b52aae33
4 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ if exist minilua.exe.manifest^
minilua %DASM% -LN %DASMFLAGS% -o host\buildvm_arch.h vm_x86.dasc
@if errorlevel 1 goto :BAD
git show -s --format=%%ct >luajit_relver.txt
if exist ..\.git ( git show -s --format=%%ct >luajit_relver.txt ) else ( type ..\.relver >luajit_relver.txt )
minilua host\genversion.lua
%LJCOMPILE% /I "." /I %DASMDIR% host\buildvm*.c