diff options
author | H. Peter Anvin <hpa@smyrno.hos.anvin.org> | 2005-09-25 15:21:50 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@smyrno.hos.anvin.org> | 2005-09-25 15:21:50 -0700 |
commit | 0809f9ffc2418a0f80fcaef67fced25cf9f9d6ac (patch) | |
tree | 8cfc6ba26a03828fa411036b3c1dc41a23989755 /Makefile.private | |
parent | a1baf03c880a48691ef21cbc73997633ab518a57 (diff) | |
download | syslinux-0809f9ffc2418a0f80fcaef67fced25cf9f9d6ac.tar.gz |
Update release procedure to use "git" instead of CVS
Diffstat (limited to 'Makefile.private')
-rw-r--r-- | Makefile.private | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile.private b/Makefile.private index 2b253731..8fcb2fbe 100644 --- a/Makefile.private +++ b/Makefile.private @@ -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 |