summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-08-24 14:20:51 +0000
committerMike Fulbright <msf@redhat.com>2000-08-24 14:20:51 +0000
commit36525cba879b68cb6ab8e22d4215501fadd7871b (patch)
tree7ba2a4dbd5ff0a053da53c8821876e90d9a91afe
parentd548c896a620373747bac74cf7b3db5e5d6f99f1 (diff)
downloadanaconda-36525cba879b68cb6ab8e22d4215501fadd7871b.tar.gz
anaconda-36525cba879b68cb6ab8e22d4215501fadd7871b.tar.xz
anaconda-36525cba879b68cb6ab8e22d4215501fadd7871b.zip
added snapshot and archive targets
-rw-r--r--Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 003f86349..4cc1e1f49 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
include Makefile.inc
-VERSION = 7.0
-RELEASE = $(shell date "+1.%Y%m%d%H%M")
+VERSION = 7.0.1
+RELEASE = 1
+SNAPRELEASE = $(shell date "+1.%Y%m%d%H%M")
SUBDIRSHD = balkan isys libfdisk collage loader po text-help \
minislang textw utils scripts bootdisk installclasses \
@@ -76,6 +77,22 @@ archive: create-archive
src: create-archive
@rpm -ts anaconda-$(VERSION).tar.gz
+create-snapshot:
+ @rm -rf /tmp/anaconda
+ @rm -rf /tmp/anaconda-$(VERSION)
+ @echo "WARNING WARNING WARNING: Pulling HEAD off - need to do tagging instead!"
+ @cd /tmp ; cvs -Q -d $(CVSROOT) export -r HEAD anaconda || echo "Um... export aborted."
+ @cd /tmp/anaconda ; rm isys/modutils/modutils.spec
+ @cd /tmp/anaconda ; rm -rf comps
+ @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 -czSpf anaconda-$(VERSION).tar.gz anaconda-$(VERSION)
+ @rm -rf /tmp/anaconda-$(VERSION)
+ @cp /tmp/anaconda-$(VERSION).tar.gz .
+ @rm -f /tmp/anaconda-$(VERSION).tar.gz
+ @echo ""
+ @echo "The final archive is in anaconda-$(VERSION).tar.gz"
+
create-archive:
@rm -rf /tmp/anaconda
@rm -rf /tmp/anaconda-$(VERSION)