summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2004-07-05 08:47:46 +0000
committerPaul Nasrat <pnasrat@redhat.com>2004-07-05 08:47:46 +0000
commit5aa9ea3e457d296c07fe6b018fe3332d87d0c446 (patch)
treeb9d547e7da431edd7d6d099dacf8e2da1a18f731 /Makefile
parent35e894130b8687ad5f03f35e01f65f151663883e (diff)
downloadanaconda-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--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 376e879f4..ada25e913 100644
--- a/Makefile
+++ b/Makefile
@@ -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"