Browse Source

Add gpxe-tarball target to create clean release tarballs

tags/v0.9.3
Marty Connor 17 years ago
parent
commit
6991ea7cc5
1 changed files with 18 additions and 1 deletions
  1. 18
    1
      src/Makefile.housekeeping

+ 18
- 1
src/Makefile.housekeeping View File

11
 #
11
 #
12
 VERSION_MAJOR	= 0
12
 VERSION_MAJOR	= 0
13
 VERSION_MINOR	= 5
13
 VERSION_MINOR	= 5
14
-VERSION_PATCH	= 0
14
+VERSION_PATCH	= 1
15
 EXTRAVERSION	=	
15
 EXTRAVERSION	=	
16
 MM_VERSION	= $(VERSION_MAJOR).$(VERSION_MINOR)
16
 MM_VERSION	= $(VERSION_MAJOR).$(VERSION_MINOR)
17
 VERSION		= $(MM_VERSION).$(VERSION_PATCH)$(EXTRAVERSION)
17
 VERSION		= $(MM_VERSION).$(VERSION_PATCH)$(EXTRAVERSION)
471
 
471
 
472
 veryclean : clean
472
 veryclean : clean
473
 	$(RM) -r $(VERYCLEANUP)
473
 	$(RM) -r $(VERYCLEANUP)
474
+
475
+# Make clean tarballs for release
476
+
477
+gpxe-tarball : ../VERSION
478
+	(echo -n $(VERSION) ''; date -u +'%Y-%m-%d') > ../VERSION
479
+	$(RM) -r /tmp/gpxe/gpxe-$(VERSION)
480
+	mkdir -p /tmp/gpxe/gpxe-$(VERSION)
481
+	cp -rP .. /tmp/gpxe/gpxe-$(VERSION)
482
+	$(RM) -r /tmp/gpxe/CVS
483
+	( cd /tmp/gpxe/gpxe-$(VERSION)/src ; $(RM) -r bin/deps ; $(MAKE) clean ; $(MAKE) veryclean )
484
+	( cd /tmp/gpxe; tar cf /tmp/gpxe/gpxe-$(VERSION).tar --exclude CVS --exclude "#*" \
485
+	  --exclude "*~" gpxe-$(VERSION) )
486
+	bzip2 -9 < /tmp/gpxe/gpxe-$(VERSION).tar > /tmp/gpxe/gpxe-$(VERSION).tar.bz2
487
+	gzip -9 < /tmp/gpxe/gpxe-$(VERSION).tar > /tmp/gpxe/gpxe-$(VERSION).tar.gz
488
+	$(RM) -r /tmp/gpxe/gpxe-$(VERSION)
489
+	$(RM) /tmp/gpxe/gpxe-$(VERSION).tar
490
+	( cd /tmp/gpxe ; tar -zxf /tmp/gpxe/gpxe-$(VERSION).tar.gz )

Loading…
Cancel
Save