use a built REVISION file as a backup revision source

This commit is contained in:
Thomas Vander Stichele
2013-07-31 12:18:41 +02:00
parent ad2e89ed97
commit df0daefa27
3 changed files with 28 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = morituri bin etc doc m4 misc
EXTRA_DIST = morituri.spec morituri.doap RELEASE README HACKING
EXTRA_DIST = morituri.spec morituri.doap RELEASE README HACKING REVISION
SOURCES = $(top_srcdir)/morituri/*.py $(top_srcdir)/morituri/*/*.py
@@ -38,6 +38,9 @@ PYCHECKER_BLACKLIST = \
release: dist
make $(PACKAGE)-$(VERSION).tar.bz2.md5
REVISION: $(top_srcdir)/.git
$(PYTHON) -c 'from morituri.configure import configure; print configure.revision' > REVISION
# generate md5 sum files
%.md5: %
md5sum $< > $@