From: Mark Wooding Date: Sun, 21 Dec 2008 20:30:27 +0000 (+0000) Subject: Build: Use auto-version to discover the version number. X-Git-Tag: 1.0.2~1 X-Git-Url: https://git.distorted.org.uk/~mdw/preload-hacks/commitdiff_plain/7886221ded04085038c33651b0cd6f3ce639cd73?hp=99413c3b70f13f34b66f1a4d528eed8d14349fd7 Build: Use auto-version to discover the version number. --- diff --git a/.gitignore b/.gitignore index 0191032..abef1d9 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ noip uopen COPYING *.o +auto-version diff --git a/.links b/.links index 5ecd9c6..89b2d6f 100644 --- a/.links +++ b/.links @@ -1 +1,2 @@ COPYING +auto-version diff --git a/Makefile b/Makefile index ba847c5..c8424a3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PACKAGE = preload-hacks -VERSION = 1.0.1 +VERSION := $(shell ./auto-version) prefix = /usr/local exec_prefix = ${prefix} @@ -55,7 +55,8 @@ DISTTAR = $(DISTDIR).tar.gz distdir: rm -rf $(DISTDIR) mkdir $(DISTDIR) - ln $(SOURCES) $(MAN1) Makefile COPYING README $(DISTDIR) + ln $(SOURCES) $(MAN1) Makefile COPYING README auto-version $(DISTDIR) + echo $(VERSION) >$(DISTDIR)/RELEASE mkdir $(DISTDIR)/debian ln debian/rules debian/copyright debian/changelog debian/control \ debian/*.install $(DISTDIR)/debian