Fixed 'lĂȘnh chĂȘnh'
[words-vi.git] / makedist
blob13a2555ff9230ea92821f271eaaa7ec51a986207
1 #!/bin/bash
3 usage() {
4 echo "Usage: makedist tag"
5 exit 1
8 [ -n "$1" -a -f .git/refs/tags/$1 ] || usage
10 T=$1
11 V=${T/v/}
13 rm -f words-vi-$V.tar words-vi-$V.tar.gz words-vi-$V/ChangeLog words-vi-$V 2>/dev/null
14 git archive --format=tar --prefix=words-vi-$V/ $T > words-vi-$V.tar
15 [ -d words-vi-$V ] || mkdir words-vi-$V
16 git shortlog $T > words-vi-$V/ChangeLog
17 tar -rf words-vi-$V.tar words-vi-$V/ChangeLog
18 gzip words-vi-$V.tar