mirror of
https://github.com/holub/mame
synced 2025-07-06 10:29:38 +03:00
Fix with cmd.exe shell
This commit is contained in:
parent
15fdafadd2
commit
bd4f90db2e
8
makefile
8
makefile
@ -900,7 +900,11 @@ ifeq ($(wildcard .git/*),)
|
||||
IGNORE_GIT := 1
|
||||
endif
|
||||
|
||||
OLD_GIT_VERSION := $(file <$(GENDIR)/git_desc)
|
||||
ifeq (posix,$(SHELLTYPE))
|
||||
OLD_GIT_VERSION := $(shell cat $(GENDIR)/git_desc 2> /dev/null)
|
||||
else
|
||||
OLD_GIT_VERSION := $(shell cat $(GENDIR)/git_desc 2> NUL)
|
||||
endif
|
||||
ifneq ($(IGNORE_GIT),1)
|
||||
NEW_GIT_VERSION := $(shell git describe --dirty)
|
||||
else
|
||||
@ -1489,7 +1493,7 @@ $(GENDIR)/version.cpp: $(GENDIR)/git_desc | $(GEN_FOLDERS)
|
||||
@echo 'const char build_version[] = BARE_BUILD_VERSION " ($(NEW_GIT_VERSION))";' >> $@
|
||||
else
|
||||
$(GENDIR)/version.cpp: $(GENDIR)/git_desc
|
||||
@echo \#define BARE_BUILD_VERSION "0.174" > $@
|
||||
@echo #define BARE_BUILD_VERSION "0.174" > $@
|
||||
@echo extern const char bare_build_version[]; >> $@
|
||||
@echo extern const char build_version[]; >> $@
|
||||
@echo const char bare_build_version[] = BARE_BUILD_VERSION; >> $@
|
||||
|
Loading…
Reference in New Issue
Block a user