From 1565631961838b4689d0f47c3af28e8097171330 Mon Sep 17 00:00:00 2001 From: Bruno Wolff III Date: Sat, 29 Jun 2013 12:42:13 -0500 Subject: [PATCH] Have make use tags to name tar ball --- Makefile | 6 ++++-- README | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6f81545..f22611b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ +all: dist + clean: - rm -f spin-kickstarts.tar.gz + rm -f spin-kickstarts-*.tar.gz dist: - git archive --format=tar --prefix=spin-kickstarts HEAD | gzip > spin-kickstarts.tar.gz + git archive --format=tar --prefix=spin-kickstarts-`git tag --points-at HEAD` HEAD | gzip > spin-kickstarts.tar-`git tag --points-at HEAD`.gz diff --git a/README b/README index ebd9fb5..9c98165 100644 --- a/README +++ b/README @@ -13,8 +13,11 @@ git clone ssh://git.fedorahosted.org/git/spin-kickstarts.git spin-kickstarts cd spin-kickstarts # If you need a specific branch other than master: git checkout BRANCHNAME -make dist +# No tag has been added yet tag HEAD with +git tag VERSION +git push tag VERSION +make # Publish the released tar ball scp spin-kickstarts-*.tar.gz fedorahosted.org:spin-kickstarts # Clean up the generated files: -git clean -f -d +make clean