[PATCH] Add "scratch" target that builds a tarball of master

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

 



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

diff --git a/Makefile b/Makefile
index af32721..0caae22 100644
--- a/Makefile
+++ b/Makefile
@@ -108,11 +108,13 @@ tag:
 ChangeLog:
 	(GIT_DIR=.git git log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
 
+ARCHIVE_TAG := anaconda-$(VERSION)-$(RELEASE)
+
 archive-no-tag:
 	@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)/ anaconda-$(VERSION)-$(RELEASE) > anaconda-$(VERSION).tar
+	@git archive --format=tar --prefix=anaconda-$(VERSION)/ $(ARCHIVE_TAG) > anaconda-$(VERSION).tar
 	@mkdir -p anaconda-$(VERSION)/docs/
 	@cp docs/kickstart-docs.txt docs/command-line.txt anaconda-$(VERSION)/docs/
 	@cp ChangeLog anaconda-$(VERSION)/
@@ -120,6 +122,9 @@ archive-no-tag:
 	@bzip2 -f anaconda-$(VERSION).tar
 	@rm -rf anaconda-$(VERSION)
 
+scratch:
+	$(MAKE) ARCHIVE_TAG=master archive-no-tag
+
 archive:
 	@make tag
 	@make archive-no-tag
-- 
1.6.0.1

_______________________________________________
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