## -*- 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
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 \
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
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