README: add example to create tar.gz archives by tag
This commit is contained in:
parent
2e967c5bae
commit
daf5185a57
1 changed files with 11 additions and 0 deletions
11
README
11
README
|
@ -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
|
||||
--------
|
||||
|
||||
|
|
Loading…
Reference in a new issue