diff options
author | Marty Connor | 2007-03-02 17:28:04 +0100 |
---|---|---|
committer | Marty Connor | 2007-03-02 17:28:04 +0100 |
commit | 6991ea7cc5b15e55cccc558707b61b1eec0b551b (patch) | |
tree | ca311deecef560259031b677a295e49933b59257 /src/Makefile.housekeeping | |
parent | Add warning about formats that are not working until we fix them (diff) | |
download | ipxe-6991ea7cc5b15e55cccc558707b61b1eec0b551b.tar.gz ipxe-6991ea7cc5b15e55cccc558707b61b1eec0b551b.tar.xz ipxe-6991ea7cc5b15e55cccc558707b61b1eec0b551b.zip |
Add gpxe-tarball target to create clean release tarballs
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 19 |
1 files changed, 18 insertions, 1 deletions
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 ) |