From: Mark Wooding Date: Tue, 9 Aug 2016 20:42:38 +0000 (+0100) Subject: Use `auto-version' for discovering the package version. X-Git-Tag: 1.1.6~2 X-Git-Url: https://git.distorted.org.uk/~mdw/rocl/commitdiff_plain/4041fdd8af852bf6fb4db0aa6ddd2c8c2f640574 Use `auto-version' for discovering the package version. --- diff --git a/.gitignore b/.gitignore index 2c04c73..c8ac9e9 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ debian/build debian/files debian/*.log debian/*.substvars +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 fb0b24a..8a8d8a1 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ RM = rm ### Shouldn't need to fiddle with this stuff. PACKAGE = rocl -VERSION = 1.1.5 +VERSION = $(shell ./auto-version) TCLSCRIPTS = \ elite-editor elite-pairs elite-path elite-find elite-map \ @@ -68,11 +68,12 @@ clean: distdir = $(PACKAGE)-$(VERSION) DISTFILES = \ COPYING README Makefile $(SRCFILES) elite.tcl steele.cmdr \ - elite.def vec.def graph.def $(TCLSCRIPTS) \ + elite.def vec.def graph.def $(TCLSCRIPTS) auto-version \ debian/rules debian/control debian/copyright debian/changelog distdir: $(DISTFILES) $(RM) -rf $(distdir) mkdir $(distdir) $(distdir)/debian + echo $(VERSION) >$(distdir)/RELEASE for i in $(DISTFILES); do \ case $$i in \ */*) \