aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-05-17 22:19:14 -0400
committerDave Reisner <d@falconindy.com>2010-05-17 22:19:14 -0400
commitc3a2eaf39f8a2a88e064834bd570a343b2663c17 (patch)
tree7cd4b1ee958732d28088d574b264c7ae7b022d6c
parent7807b02f5ae9d3b8c45263a087ff3a6df9b97026 (diff)
downloadsquashfu-c3a2eaf39f8a2a88e064834bd570a343b2663c17.tar.gz
makefile: set version on installation
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 83fe575..3506e52 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION=1.0
+VERSION=$(shell git describe)
all: doc
doc: squashfu.1
@@ -6,7 +6,7 @@ doc: squashfu.1
install: all
@echo "installing squashfu to ${DESTDIR}/usr/bin"
@mkdir -p ${DESTDIR}/usr/bin
- @cp squashfu ${DESTDIR}/usr/bin
+ @sed "s/VER=.*/VER=${VERSION}/" < squashfu > ${DESTDIR}/usr/bin/squashfu
@chmod 755 ${DESTDIR}/usr/bin/squashfu
@mkdir -p ${DESTDIR}/etc
@cp squashfu.conf ${DESTDIR}/etc