]> Cypherpunks.ru repositories - pygost.git/blob - makedist.sh
2.3 release is ready
[pygost.git] / makedist.sh
1 #!/bin/sh -ex
2
3 cur=$(pwd)
4 tmp=$(mktemp -d)
5 release=$1
6 [ -n "$release" ]
7
8 cp dist/pygost-"$release".tar.gz $tmp
9 cd $tmp
10 gunzip pygost-"$release".tar.gz
11 xz -9 pygost-"$release".tar
12 gpg --detach-sign --sign --local-user E6FD1269CD0C009E pygost-"$release".tar.xz
13
14 tarball=pygost-"$release".tar.xz
15 size=$(( $(wc -c < $tarball) / 1024 ))
16 hash=$(gpg --print-md SHA256 < $tarball)
17 hashsb=$($HOME/work/gogost/gogost-streebog < $tarball)
18
19 cat <<EOF
20 An entry for documentation:
21 @item $release @tab $size KiB
22 @tab @url{pygost-${release}.tar.xz, link} @url{pygost-${release}.tar.xz.sig, sign}
23 @tab @code{$hash}
24 @tab @code{$hashsb}
25 EOF
26
27 cat <<EOF
28 Subject: PyGOST $release release announcement
29
30 I am pleased to announce PyGOST $release release availability!
31
32 PyGOST is free software pure Python GOST cryptographic functions library.
33 GOST is GOvernment STandard of Russian Federation (and Soviet Union).
34
35 ------------------------ >8 ------------------------
36
37 The main improvements for that release are:
38
39
40 ------------------------ >8 ------------------------
41
42 PyGOST'es home page is: http://www.cypherpunks.ru/pygost/
43
44 Source code and its signature for that version can be found here:
45
46     http://www.cypherpunks.ru/pygost/pygost-${release}.tar.xz ($size KiB)
47     http://www.cypherpunks.ru/pygost/pygost-${release}.tar.xz.sig
48
49 Streebog-256 hash: $hashsb
50 SHA256 hash: $hash
51 GPG key ID: 0xE6FD1269CD0C009E PyGOST releases <pygost at cypherpunks dot ru>
52 Fingerprint: F55A 7619 3A0C 323A A031  0E6B E6FD 1269 CD0C 009E
53
54 Please send questions regarding the use of PyGOST, bug reports and patches
55 to mailing list: https://lists.cypherpunks.ru/mailman/listinfo/gost
56 EOF
57
58 mv $tmp/$tarball $tmp/"$tarball".sig $cur/pygost.html/