mirror of
https://github.com/schoebel/mars
synced 2025-03-02 19:38:09 +00:00
infra: Makefile.dist include GIT HEAD in DISTVERSION file
Signed-off-by: Thomas Schoebel-Theuer <tst@1und1.de>
This commit is contained in:
parent
9bcc99da6f
commit
e9bb100820
@ -24,6 +24,7 @@ KERNELFILES := DISTVERSION
|
||||
DISTDIRS := kernel userspace docu pre-patches
|
||||
DISTFILES := AUTHORS ChangeLog COPYING INSTALL NEWS README DISTVERSION
|
||||
DISTVERSION := 0.0.0.$(shell date +%Y%m%d)
|
||||
GITHEAD := $( git rev-parse --short HEAD )
|
||||
DISTTMPDIR := disttmp
|
||||
|
||||
TARBALL := mars-$(DISTVERSION).tar.bz2
|
||||
@ -54,7 +55,7 @@ dist: distclean $(GENFILES)
|
||||
|
||||
DISTVERSION:
|
||||
@echo "Generating $@ ($(DISTVERSION))"
|
||||
/bin/echo "$(DISTVERSION)" > $@
|
||||
/bin/echo "$(DISTVERSION)-$(GITHEAD)" > $@
|
||||
|
||||
|
||||
.PHONY: default clean distclean dist DISTVERSION
|
||||
|
Loading…
Reference in New Issue
Block a user