README: add example to create tar.gz archives by tag - stagit-gopher - A git gopher frontend. (mirror) HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit a07ba959b0f25d75c1bf608c4a55377b2768de61 DIR parent 3ef0c66de5c3087af621b94db15d28c9054586e1 HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> 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(-) --- DIR 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 --------