mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-19 21:43:27 +00:00
Makefile: check that .git is a folder and not a file (happens in submodules)
This commit is contained in:
parent
8ccd3790da
commit
e85b88d61b
@ -476,7 +476,7 @@ DASM_DASC= vm_$(DASM_ARCH).dasc
|
||||
|
||||
GIT=
|
||||
ifeq (,$(HOST_MSYS))
|
||||
GIT_RELVER= if exist ..\.git ( git show -s --format=%%ct >luajit_relver.txt ) else ( type ..\.relver >luajit_relver.txt )
|
||||
GIT_RELVER= if exist ..\.git\ ( git show -s --format=%%ct >luajit_relver.txt ) else ( type ..\.relver >luajit_relver.txt )
|
||||
else
|
||||
GIT_RELVER= [ -e ../.git ] && $(GIT) show -s --format=%ct >luajit_relver.txt 2>/dev/null || cat ../.relver >luajit_relver.txt 2>/dev/null || :
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user