Build: Use auto-version to discover the version number.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 21 Dec 2008 20:30:27 +0000 (20:30 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 21 Dec 2008 20:30:27 +0000 (20:30 +0000)
.gitignore
.links
Makefile

index 0191032..abef1d9 100644 (file)
@@ -7,3 +7,4 @@ noip
 uopen
 COPYING
 *.o
+auto-version
diff --git a/.links b/.links
index 5ecd9c6..89b2d6f 100644 (file)
--- a/.links
+++ b/.links
@@ -1 +1,2 @@
 COPYING
+auto-version
index ba847c5..c8424a3 100644 (file)
--- 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