Version information is now fetched and defined by the Makefile.

No more need to update the version manually in the init.c source.
This commit is contained in:
Jesse Smith
2018-07-01 18:44:57 -03:00
parent 8cc9f34ca4
commit 7656f9d5f9
4 changed files with 15 additions and 9 deletions

View File

@@ -1,8 +1,9 @@
all install clean distclean:
$(MAKE) -C src $@
PACKAGE=sysvinit
VERSION=$(shell sed -rn '1s/.*[[:blank:]]\((.*)\)[[:blank:]].*/\1/p' doc/Changelog)
all install clean distclean:
$(MAKE) VERSION=$(VERSION) -C src $@
GITLOGIN=$(shell git remote -v | head -n 1 | cut -f 1 -d '@' | sed 's/origin\t//g')
override TMP:=$(shell mktemp -du $(VERSION).XXXXXXXX)
override TARBALL:=$(TMP)/$(PACKAGE)-$(VERSION).tar.xz