chiark / gitweb /
Use `auto-version' for discovering the package version.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 9 Aug 2016 20:42:38 +0000 (21:42 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 9 Aug 2016 21:24:55 +0000 (22:24 +0100)
.gitignore
.links
Makefile

index 2c04c73e82d2b57922ca0a3921c414fd3e5eae2d..c8ac9e90d74c5b65fb54d9abc49db951e455f40f 100644 (file)
@@ -9,3 +9,4 @@ debian/build
 debian/files
 debian/*.log
 debian/*.substvars
+auto-version
diff --git a/.links b/.links
index 5ecd9c64ade274e86177f1b2a526c9216aa5bbdf..89b2d6f857b7812e9534b452676dab50dc8bbcb6 100644 (file)
--- a/.links
+++ b/.links
@@ -1 +1,2 @@
 COPYING
+auto-version
index fb0b24ae71c1811d82f72e8ad6ceac206205e7ef..8a8d8a1289345e8991f9f4fb82db4ea18947d79e 100644 (file)
--- 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 \
            */*) \