mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 14:03:26 +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=
|
GIT=
|
||||||
ifeq (,$(HOST_MSYS))
|
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
|
else
|
||||||
GIT_RELVER= [ -e ../.git ] && $(GIT) show -s --format=%ct >luajit_relver.txt 2>/dev/null || cat ../.relver >luajit_relver.txt 2>/dev/null || :
|
GIT_RELVER= [ -e ../.git ] && $(GIT) show -s --format=%ct >luajit_relver.txt 2>/dev/null || cat ../.relver >luajit_relver.txt 2>/dev/null || :
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user