From 26c2b77bff6dcab6f212dd5fb0a6b755aca1c88f Mon Sep 17 00:00:00 2001 From: William Cohen Date: Wed, 16 Mar 2011 11:32:26 -0400 Subject: Add check to flag any uncommitted changes before creating tarball --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 508bee7..12b2623 100644 --- a/Makefile.am +++ b/Makefile.am @@ -81,4 +81,8 @@ uninstall-hook: rm -f $(DESTDIR)$(libdir)/libmemstomp.so rm -f $(DESTDIR)$(libdir)/libmemstomp-backtrace-symbols.so +dist-gzip: + cd $(srcdir); git status | grep working.directory.clean || (echo "You should commit your changes before 'make rpm'.") + (cd $(srcdir); git archive --prefix=memstomp-$(VERSION)/ --format=tar HEAD) | gzip > memstomp-$(VERSION).tar.gz + ACLOCAL_AMFLAGS = -I m4 -- cgit