diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-02-25 14:43:23 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-02-25 14:43:23 -0500 |
commit | 187b358c61dc1d177716e484df2ffde421489992 (patch) | |
tree | 9ee69bc12da6641843a224d271dc5766c14c9cf2 /Makefile | |
parent | 3df52afa2e9a24be03aae94c99eac0b0fc3ab9bf (diff) |
auto version spec file
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |