summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-05-21 20:59:02 +0000
committerJeremy Katz <katzj@redhat.com>2004-05-21 20:59:02 +0000
commitf63d13c9bdb8f4c38b3a1e9fea0dc13a74d25af1 (patch)
treeb26e3639409e411f8ee16ba26e9f77e45a589ba8 /Makefile
parent86b1012977b0b83fab49b056470439f2fbae2327 (diff)
downloadanaconda-f63d13c9bdb8f4c38b3a1e9fea0dc13a74d25af1.tar.gz
anaconda-f63d13c9bdb8f4c38b3a1e9fea0dc13a74d25af1.tar.xz
anaconda-f63d13c9bdb8f4c38b3a1e9fea0dc13a74d25af1.zip
smarter handling of cvsroot
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 47490aa33..a6d444cef 100644
--- a/Makefile
+++ b/Makefile
@@ -110,8 +110,9 @@ create-snapshot:
@tag=`cvs status Makefile | awk ' /Sticky Tag/ { print $$3 } '` 2> /dev/null; \
[ x"$$tag" = x"(none)" ] && tag=HEAD; \
[ x"$$TAG" != x ] && tag=$$TAG; \
- echo "*** Pulling off $$tag!"; \
- cd /tmp ; cvs -Q -d $(CVSROOT) export -r $$tag anaconda || echo "Um... export aborted."
+ cvsroot=`cat CVS/Root` 2>/dev/null; \
+ echo "*** Pulling off $$tag from $$cvsroot!"; \
+ cd /tmp ; cvs -Q -d $$cvsroot export -r $$tag anaconda || echo "Um... export aborted."
@cd /tmp/anaconda ; sed -e "s/@@VERSION@@/$(VERSION)/g" -e "s/@@RELEASE@@/$(SNAPRELEASE)/g" < anaconda.spec.in > anaconda.spec
@mv /tmp/anaconda /tmp/anaconda-$(VERSION)
@cd /tmp ; tar --bzip2 -cSpf anaconda-$(VERSION).tar.bz2 anaconda-$(VERSION)