]> Cypherpunks.ru repositories - gogost.git/blob - makedist.sh
1.1 release is ready
[gogost.git] / makedist.sh
1 #!/bin/sh -ex
2
3 cur=$(pwd)
4 tmp=$(mktemp -d)
5 release=$1
6 [ -n "$release" ]
7
8 git clone . $tmp/gogost-$release
9 cd $tmp/gogost-$release
10 git checkout $release
11
12 find . -name .git -type d | xargs rm -fr
13 rm -f www* makedist* TODO
14
15 cd ..
16 tar cvf gogost-"$release".tar gogost-"$release"
17 xz -9 gogost-"$release".tar
18 gpg --detach-sign --sign --local-user 82343436696FC85A gogost-"$release".tar.xz
19
20 tarball=gogost-"$release".tar.xz
21 size=$(( $(wc -c < $tarball) / 1024 ))
22 hash=$(gpg --print-md SHA256 < $tarball)
23 hashsb=$($HOME/work/gogost/gogost-streebog < $tarball)
24
25 cat <<EOF
26 An entry for documentation:
27 @item $release @tab $size KiB
28 @tab @url{gogost-${release}.tar.xz, link} @url{gogost-${release}.tar.xz.sig, sign}
29 @tab @code{$hash}
30 @tab @code{$hashsb}
31 EOF
32
33 cat <<EOF
34 Subject: GoGOST $release release announcement
35
36 I am pleased to announce GoGOST $release release availability!
37
38 GoGOST is free software pure Go GOST cryptographic functions library.
39 GOST is GOvernment STandard of Russian Federation (and Soviet Union).
40
41 ------------------------ >8 ------------------------
42
43 The main improvements for that release are:
44
45
46 ------------------------ >8 ------------------------
47
48 GoGOST'es home page is: http://www.cypherpunks.ru/gogost/
49
50 Source code and its signature for that version can be found here:
51
52     http://www.cypherpunks.ru/gogost/gogost-${release}.tar.xz ($size KiB)
53     http://www.cypherpunks.ru/gogost/gogost-${release}.tar.xz.sig
54
55 Streebog-256 hash: $hashsb
56 SHA256 hash: $hash
57 GPG key ID: 0x82343436696FC85A GoGOST releases <gogost at cypherpunks dot ru>
58 Fingerprint: CEBD 1282 2C46 9C02 A81A  0467 8234 3436 696F C85A
59
60 Please send questions regarding the use of GoGOST, bug reports and patches
61 to mailing list: https://lists.cypherpunks.ru/mailman/listinfo/gost
62 EOF
63
64 mv $tmp/$tarball $tmp/"$tarball".sig $cur/gogost.html/