diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2004-07-05 08:47:46 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2004-07-05 08:47:46 +0000 |
commit | 5aa9ea3e457d296c07fe6b018fe3332d87d0c446 (patch) | |
tree | b9d547e7da431edd7d6d099dacf8e2da1a18f731 /Makefile | |
parent | 35e894130b8687ad5f03f35e01f65f151663883e (diff) | |
download | anaconda-5aa9ea3e457d296c07fe6b018fe3332d87d0c446.tar.gz anaconda-5aa9ea3e457d296c07fe6b018fe3332d87d0c446.tar.xz anaconda-5aa9ea3e457d296c07fe6b018fe3332d87d0c446.zip |
Improve make local to create a clear tarball
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -148,12 +148,13 @@ pycheck-file: PYTHONPATH=.:isys:textw:iw:installclasses:booty:booty/edd pychecker $(CHECK) | grep -v "__init__() not called" PKGNAME=anaconda -local: +local: clean @rm -rf ${PKGNAME}-$(VERSION).tar.gz @rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME} @dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME} + @pushd /tmp/${PKGNAME} ; sed -e "s/@@VERSION@@/$(VERSION)/g" -e "s/@@RELEASE@@/$(SNAPRELEASE)/g" < anaconda.spec.in > anaconda.spec ; popd @mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION) - @dir=$$PWD; cd /tmp; tar --bzip2 -cvf $$dir/${PKGNAME}-$(VERSION).tar.bz2 ${PKGNAME}-$(VERSION) + @dir=$$PWD; cd /tmp; tar --exclude CVS --bzip2 -cvf $$dir/${PKGNAME}-$(VERSION).tar.bz2 ${PKGNAME}-$(VERSION) @rm -rf /tmp/${PKGNAME}-$(VERSION) @echo "The archive is in ${PKGNAME}-$(VERSION).tar.bz2" |