README: add example to create tar.gz archives by tag

This commit is contained in:
Hiltjo Posthuma 2017-07-05 20:25:54 +02:00
parent 2e967c5bae
commit daf5185a57

11
README
View file

@ -78,6 +78,17 @@ Script:
}'
Create .tar.gz archives by tag
------------------------------
#!/bin/sh
name="stagit"
mkdir -p archives
git tag -l | while read -r t; do
f="archives/$name-$t.tar.gz"
test -f "$f" || git archive --format tar.gz "$t" -o "$f"
done
Features
--------