Closed AndrejMitrovic closed 8 years ago
I'm not sure what's going on here because Digger simply invokes make
.
Right, it's not a digger issue sorry. It's a makefile issue (surprise!). :D
posix.mak:
VERSION := $(shell cat ../VERSION)
ifneq (1,$(RELEASE))
VERSION_GIT := $(shell printf "`$(GIT) rev-parse --short HEAD`"; \
test -n "`$(GIT) status --porcelain -uno`" && printf -- -dirty)
VERSION := $(addsuffix -devel$(if $(VERSION_GIT),-$(VERSION_GIT)),$(VERSION))
endif
$(shell test \"$(VERSION)\" != "`cat verstr.h 2> /dev/null`" \
&& printf \"$(VERSION)\" > verstr.h )
$(shell test $(SYSCONFDIR) != "`cat SYSCONFDIR.imp 2> /dev/null`" \
&& printf '$(SYSCONFDIR)' > SYSCONFDIR.imp )
win32.mak:
verstr.h : ..\VERSION
echo "$(..\VERSION)" >verstr.h
Right, the build tag seems to be a Linux-Makefile-specific feature :)
Example:
This is in contrast to building manually (at least on Linux):
Having the commit listed for non-release builds is useful to quickly determine which DMD is being currently invoked.