diff options
author | William Cohen <wcohen@redhat.com> | 2011-03-16 11:32:26 -0400 |
---|---|---|
committer | William Cohen <wcohen@redhat.com> | 2011-03-16 11:32:26 -0400 |
commit | 26c2b77bff6dcab6f212dd5fb0a6b755aca1c88f (patch) | |
tree | ad933c81e182ed5e3360808e4e1497345cb4b975 /Makefile.in | |
parent | 040a7cda095fde2db65ca043d0aa491848b12bfe (diff) | |
download | memstomp-26c2b77bff6dcab6f212dd5fb0a6b755aca1c88f.tar.gz memstomp-26c2b77bff6dcab6f212dd5fb0a6b755aca1c88f.tar.xz memstomp-26c2b77bff6dcab6f212dd5fb0a6b755aca1c88f.zip |
Add check to flag any uncommitted changes before creating tarball
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index b460a01..738caf4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -613,9 +613,6 @@ distdir: $(DISTFILES) ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 @@ -864,6 +861,10 @@ 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 + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: |