Re: [PATCH] Add "scratch" target that builds a tarball of origin/master .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pjones wrote:
Since "archive-no-tag" isn't very useful for test builds, add another
tarball-making target that just builds whatever is in origin/master.
---
 Makefile |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index af32721..17a8fe8 100644
--- a/Makefile
+++ b/Makefile
@@ -120,6 +120,18 @@ archive-no-tag:
 	@bzip2 -f anaconda-$(VERSION).tar
 	@rm -rf anaconda-$(VERSION)
+scratch:
+	@rm -f ChangeLog docs/kickstart-docs.txt docs/command-line.txt
+	@make ChangeLog
+	@make -C docs kickstart-docs.txt command-line.txt
+	@git archive --format=tar --prefix=anaconda-$(VERSION)/ origin/master > anaconda-$(VERSION).tar

Actually, I think you pretty much always want "master" rather than "origin/master" here.

+	@mkdir -p anaconda-$(VERSION)/docs/
+	@cp docs/kickstart-docs.txt docs/command-line.txt anaconda-$(VERSION)/docs/
+	@cp ChangeLog anaconda-$(VERSION)/
+	@tar --append -f anaconda-$(VERSION).tar anaconda-$(VERSION)
+	@bzip2 -f anaconda-$(VERSION).tar
+	@rm -rf anaconda-$(VERSION)
+
 archive:
 	@make tag
 	@make archive-no-tag


--
        Peter

When privacy is outlawed only outlaws will have privacy.
		-- Zimmermann

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux