From c3a2eaf39f8a2a88e064834bd570a343b2663c17 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 17 May 2010 22:19:14 -0400 Subject: [PATCH] makefile: set version on installation --- Makefile | 4 ++-- 1 file 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