Update release procedure to use "git" instead of CVS
authorH. Peter Anvin <hpa@smyrno.hos.anvin.org>
Sun, 25 Sep 2005 22:21:50 +0000 (15:21 -0700)
committerH. Peter Anvin <hpa@smyrno.hos.anvin.org>
Sun, 25 Sep 2005 22:21:50 +0000 (15:21 -0700)
Makefile.private

index 2b25373..8fcb2fb 100644 (file)
@@ -1,6 +1,6 @@
 ## -*- makefile -*- ------------------------------------------------------
 ##   
-##   Copyright 2000-2004 H. Peter Anvin - All Rights Reserved
+##   Copyright 2000-2005 H. Peter Anvin - All Rights Reserved
 ##
 ##   This program is free software; you can redistribute it and/or modify
 ##   it under the terms of the GNU General Public License as published by
@@ -22,6 +22,9 @@ CVS     = cvs -d hpa@terminus.zytor.com:/home/hpa/cvsroot
 
 PRIVATE = Makefile.private .depend */.depend
 
+GIT_DIR ?= .git
+ABS_GIT_DIR := $(shell cd '$(GIT_DIR)' && pwd)
+
 isolinux.iso: all
        cp isolinux-debug.bin isolinux-test/isolinux/isolinux.bin
        mkisofs -v -r -J \
@@ -39,11 +42,12 @@ official:
 
 release:
        test -d release
-       $(CVS) tag -F `echo syslinux-$(VERSION) | sed -e 's/\./_/g'`
+       rm -f $(GIT_DIR)/refs/tags/syslinux-$(VERSION)
+       cg-tag syslinux-$(VERSION)
        -rm -rf release/syslinux-$(VERSION)
        -rm -f release/syslinux-$(VERSION).*
        mkdir -p release/syslinux-$(VERSION)
-       cd release && $(CVS) export -r `echo syslinux-$(VERSION) | sed -e 's/\./_/g'` -d syslinux-$(VERSION) syslinux
+       cd release && env GIT_DIR='$(ABS_GIT_DIR)' cg-export -r syslinux-$(VERSION) syslinux-$(VERSION)
        find release/syslinux-$(VERSION) \
                \( -name '*~' -or -name '#*' \) -type f -print0 | \
                xargs -0rt rm -f
@@ -70,12 +74,14 @@ RPMPREREL := $(shell $(PERL) -e 'printf "%.2f.%d\n", $(VERSION)-0.01, $(PRERELNO
 
 prerel:
        test -d release
+       rm -f $(GIT_DIR)/refs/tags/syslinux-$(VERSION)
+       cg-tag syslinux-$(VERSION)
        $(CVS) tag -F `echo $(PREREL) | sed -e 's/\./_/g'`
        mkdir -p $(PRERELDIR) $(PRERELDIR)/uu
        -rm -rf $(PRERELDIR)/$(PREREL)
        -rm -f $(PRERELDIR)/$(PREREL).*
        mkdir -p $(PRERELDIR)/$(PREREL)
-       cd $(PRERELDIR) && $(CVS) export -r `echo $(PREREL) | sed -e 's/\./_/g'` -d $(PREREL) syslinux
+       cd $(PRERELDIR) && env GIT_DIR='$(ABS_GIT_DIR)' cg-export -r $(PREREL) $(PREREL)
        find $(PRERELDIR)/$(PREREL) \
                \( -name '*~' -or -name '#*' \) -type f -print0 | \
                xargs -0rt rm -f