From 7886221ded04085038c33651b0cd6f3ce639cd73 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 21 Dec 2008 20:30:27 +0000 Subject: [PATCH] Build: Use auto-version to discover the version number. --- .gitignore | 1 + .links | 1 + Makefile | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.11.0