Przeglądaj źródła

Add gpxe-tarball target to create clean release tarballs

tags/v0.9.3
Marty Connor 17 lat temu
rodzic
commit
6991ea7cc5
1 zmienionych plików z 18 dodań i 1 usunięć
  1. 18
    1
      src/Makefile.housekeeping

+ 18
- 1
src/Makefile.housekeeping Wyświetl plik

@@ -11,7 +11,7 @@ CLEANUP	:= $(BIN)/*.* # *.* to avoid catching the "CVS" directory
11 11
 #
12 12
 VERSION_MAJOR	= 0
13 13
 VERSION_MINOR	= 5
14
-VERSION_PATCH	= 0
14
+VERSION_PATCH	= 1
15 15
 EXTRAVERSION	=	
16 16
 MM_VERSION	= $(VERSION_MAJOR).$(VERSION_MINOR)
17 17
 VERSION		= $(MM_VERSION).$(VERSION_PATCH)$(EXTRAVERSION)
@@ -471,3 +471,20 @@ clean :
471 471
 
472 472
 veryclean : clean
473 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 )

Ładowanie…
Anuluj
Zapisz