From 6991ea7cc5b15e55cccc558707b61b1eec0b551b Mon Sep 17 00:00:00 2001 From: Marty Connor Date: Fri, 2 Mar 2007 16:28:04 +0000 Subject: [PATCH] Add gpxe-tarball target to create clean release tarballs --- src/Makefile.housekeeping | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index a4258830..e01817d7 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -11,7 +11,7 @@ CLEANUP := $(BIN)/*.* # *.* to avoid catching the "CVS" directory # VERSION_MAJOR = 0 VERSION_MINOR = 5 -VERSION_PATCH = 0 +VERSION_PATCH = 1 EXTRAVERSION = MM_VERSION = $(VERSION_MAJOR).$(VERSION_MINOR) VERSION = $(MM_VERSION).$(VERSION_PATCH)$(EXTRAVERSION) @@ -471,3 +471,20 @@ clean : veryclean : clean $(RM) -r $(VERYCLEANUP) + +# Make clean tarballs for release + +gpxe-tarball : ../VERSION + (echo -n $(VERSION) ''; date -u +'%Y-%m-%d') > ../VERSION + $(RM) -r /tmp/gpxe/gpxe-$(VERSION) + mkdir -p /tmp/gpxe/gpxe-$(VERSION) + cp -rP .. /tmp/gpxe/gpxe-$(VERSION) + $(RM) -r /tmp/gpxe/CVS + ( cd /tmp/gpxe/gpxe-$(VERSION)/src ; $(RM) -r bin/deps ; $(MAKE) clean ; $(MAKE) veryclean ) + ( cd /tmp/gpxe; tar cf /tmp/gpxe/gpxe-$(VERSION).tar --exclude CVS --exclude "#*" \ + --exclude "*~" gpxe-$(VERSION) ) + bzip2 -9 < /tmp/gpxe/gpxe-$(VERSION).tar > /tmp/gpxe/gpxe-$(VERSION).tar.bz2 + gzip -9 < /tmp/gpxe/gpxe-$(VERSION).tar > /tmp/gpxe/gpxe-$(VERSION).tar.gz + $(RM) -r /tmp/gpxe/gpxe-$(VERSION) + $(RM) /tmp/gpxe/gpxe-$(VERSION).tar + ( cd /tmp/gpxe ; tar -zxf /tmp/gpxe/gpxe-$(VERSION).tar.gz )