README: add example to create tar.gz archives by tag - stagit-gopher - A git go… | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit a07ba959b0f25d75c1bf608c4a55377b2768de61 | |
parent 3ef0c66de5c3087af621b94db15d28c9054586e1 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Wed, 5 Jul 2017 20:27:07 +0200 | |
README: add example to create tar.gz archives by tag | |
Diffstat: | |
M README | 11 +++++++++++ | |
1 file changed, 11 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/README b/README | |
@@ -66,6 +66,17 @@ make | |
make install | |
+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 | |
-------- | |