From 187b358c61dc1d177716e484df2ffde421489992 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 25 Feb 2009 14:43:23 -0500 Subject: auto version spec file --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cb47591..8f8239d 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,11 @@ INSTALL=install INSTALL_EXE=${INSTALL} -D INSTALL_DATA=${INSTALL} -m 0644 -D -build: +build: etckeeper.spec -./etckeeper-bzr/__init__.py build || echo "** bzr support not built" + +etckeeper.spec: + sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'