summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-08 21:34:13 +0200
committerPaul Buetow <paul@buetow.org>2013-04-08 21:34:13 +0200
commite5bbcf7dad06012c121327680bab99a00f1071d5 (patch)
tree4ba8245a692401ab01e3bccb20531e99d60b1e41 /Makefile
parentab4d6eaab161adc57286f67d905dea5009784b51 (diff)
add auto versioning0.8.6
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fcf8d8c..d6c1a6f 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ build:
# 'install' installes a fake-root, which will be used to build the Debian package
# $DESTDIR is actually set by the Debian tools.
-install:
+install: version
test ! -d $(DESTDIR)/usr/bin && mkdir -p $(DESTDIR)/usr/bin || exit 0
test ! -d $(DESTDIR)/usr/share/$(NAME) && mkdir -p $(DESTDIR)/usr/share/$(NAME) || exit 0
test ! -d $(DESTDIR)/usr/share/man/man1 && mkdir -p $(DESTDIR)/usr/share/man/man1 || exit 0
@@ -38,6 +38,7 @@ clean:
# Parses the version out of the Debian changelog
version:
cut -d' ' -f2 debian/changelog | head -n 1 | sed 's/(//;s/)//' > .version
+ sed -i "s/.*PWGREP_VERSION=.*/declare -r PWGREP_VERSION=$$(cat .version)/" ./bin/$(NAME).sh
# Builds the documentation into a manpage
documentation: