diff options
author | jcwillia <jcwillia> | 2007-01-08 17:35:29 +0000 |
---|---|---|
committer | jcwillia <jcwillia> | 2007-01-08 17:35:29 +0000 |
commit | 34e299de092d41aafd614987e7a5f809436d8cd3 (patch) | |
tree | c8b8b25e7ee81519f54ce0aae891c9930978baf1 | |
parent | f8a1422863273e6cd8e6d767fb94e745c71c5651 (diff) | |
download | mock-34e299de092d41aafd614987e7a5f809436d8cd3.tar.gz mock-34e299de092d41aafd614987e7a5f809436d8cd3.tar.xz mock-34e299de092d41aafd614987e7a5f809436d8cd3.zip |
changed cp to rsync and added excludes patterns for archive creation
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -26,10 +26,13 @@ install: mkdir -p $(DESTDIR)/var/lib/mock for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done +EXCLUDES := --exclude='*~' --exclude='*.patch' --exclude='*.save' \ + --exclude='*.rpm' --exclude='*.diff' --exclude='*.sh' \ + --exclude='*.tar.gz' --exclude='*.tar.bz2' --exclude='*test*' archive: clean @rm -rf ${PKGNAME}-*.tar.gz @rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME} - @dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME} + @rsync -a $(EXCLUDES) . /tmp/${PKGNAME} @rm -rf /tmp/${PKGNAME}/${PKGNAME}-daily.spec /tmp/${PKGNAME}/build /tmp/${PKGNAME}/dist @mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION) @dir=$$PWD; cd /tmp; tar cvz --exclude=CVS --exclude=.cvsignore -f $$dir/${PKGNAME}-$(VERSION).tar.gz ${PKGNAME}-$(VERSION) |