Have make use tags to name tar ball

This commit is contained in:
Bruno Wolff III 2013-06-29 12:42:13 -05:00
parent ad3a0c5f57
commit 1565631961
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,7 @@
all: dist
clean: clean:
rm -f spin-kickstarts.tar.gz rm -f spin-kickstarts-*.tar.gz
dist: 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

7
README
View File

@ -13,8 +13,11 @@ git clone ssh://git.fedorahosted.org/git/spin-kickstarts.git spin-kickstarts
cd spin-kickstarts cd spin-kickstarts
# If you need a specific branch other than master: # If you need a specific branch other than master:
git checkout BRANCHNAME 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 # Publish the released tar ball
scp spin-kickstarts-*.tar.gz fedorahosted.org:spin-kickstarts scp spin-kickstarts-*.tar.gz fedorahosted.org:spin-kickstarts
# Clean up the generated files: # Clean up the generated files:
git clean -f -d make clean