summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-25 14:43:23 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-25 14:43:23 -0500
commit187b358c61dc1d177716e484df2ffde421489992 (patch)
tree9ee69bc12da6641843a224d271dc5766c14c9cf2 /Makefile
parent3df52afa2e9a24be03aae94c99eac0b0fc3ab9bf (diff)
auto version spec file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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/\((.*?)\)/'<debian/changelog)/" etckeeper.spec
install:
mkdir -p $(DESTDIR)$(etcdir)/etckeeper/ $(DESTDIR)$(vardir)/cache/etckeeper/
@@ -39,3 +42,5 @@ endif
clean:
rm -rf build
+
+.PHONY: etckeeper.spec