summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjcwillia <jcwillia>2007-01-08 17:35:29 +0000
committerjcwillia <jcwillia>2007-01-08 17:35:29 +0000
commit34e299de092d41aafd614987e7a5f809436d8cd3 (patch)
treec8b8b25e7ee81519f54ce0aae891c9930978baf1
parentf8a1422863273e6cd8e6d767fb94e745c71c5651 (diff)
downloadmock-34e299de092d41aafd614987e7a5f809436d8cd3.tar.gz
mock-34e299de092d41aafd614987e7a5f809436d8cd3.tar.xz
mock-34e299de092d41aafd614987e7a5f809436d8cd3.zip
changed cp to rsync and added excludes patterns for archive creation
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fc22642..d5650c4 100644
--- a/Makefile
+++ b/Makefile
@@ -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)