stagit

git site generator
Contents

README: improve tarball generation by tag example

- set the project name + '-' + tag name as prefix.
- allow '/' in the tag name.
- allow '-' as suffix in the tag.

Hiltjo Posthuma hiltjo@codemadness.org

commit: 29d0a52 parent: 865be58
1 files changed, 8 insertions(+), 2 deletions(-)
MREADME+8-2
M · README +8, -2
 1@@ -123,8 +123,14 @@ Create .tar.gz archives by tag
 2 name="stagit"
 3 mkdir -p archives
 4 git tag -l | while
read -r t; do
 5- f="archives/$name-$t.tar.gz"
 6- test -f
"$f" || git archive --format tar.gz "$t" -o "$f"
 7+
f="archives/${name}-$(echo "${t}" | tr '/' '_').tar.gz"
 8+ test -f
"${f}" && continue
 9+ git archive \
10+ --format tar.gz \
11+ --prefix
"${t}/" \
12+ -o
"${f}" \
13+ -- \
14+
"${t}"
15 done
16
17