Add a dist target that copies the archive to fedorahosted

This commit is contained in:
Brian C. Lane 2013-08-01 09:48:28 -07:00
parent 2402b6a85f
commit f90200348b
1 changed files with 4 additions and 1 deletions

View File

@ -27,11 +27,14 @@ clean:
tag:
git tag -f $(TAG)
archive: tag
archive:
@git archive --format=tar --prefix=$(PKGNAME)-$(VERSION)/ $(TAG) > $(PKGNAME)-$(VERSION).tar
@gzip $(PKGNAME)-$(VERSION).tar
@echo "The archive is in $(PKGNAME)-$(VERSION).tar.gz"
dist: tag archive
scp $(PKGNAME)-$(VERSION).tar.gz fedorahosted.org:lorax
local:
@rm -rf $(PKGNAME)-$(VERSION).tar.gz
@rm -rf /var/tmp/$(PKGNAME)-$(VERSION)