]> Cypherpunks.ru repositories - pygost.git/blob - maketxts.sh
GOST PKCS#8 private keys are wrapped to OCTET STRING
[pygost.git] / maketxts.sh
1 #!/bin/sh -ex
2
3 mkinfo() {
4     ${MAKEINFO:-makeinfo} --plaintext \
5         --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
6         --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
7         -D "VERSION `cat VERSION`" $@
8 }
9
10 texi=$(mktemp)
11
12 cat > $texi <<EOF
13 \input texinfo
14 @documentencoding UTF-8
15 @settitle NEWS
16 @node News
17 @unnumbered News
18 `sed -n '3,$p' < news.texi`
19 @bye
20 EOF
21 mkinfo --output NEWS $texi
22
23 cat > download.texi <<EOF
24 You can obtain releases source code prepared tarballs on
25 @url{http://www.pygost.cypherpunks.ru/}.
26 EOF
27
28 perl -i -p -e 's/hash=sha256:\w+/hash=sha256:TARBALL-HASH/' install.texi
29
30 cat > $texi <<EOF
31 \input texinfo
32 @documentencoding UTF-8
33 @settitle INSTALL
34 @include install.texi
35 @bye
36 EOF
37 mkinfo --output INSTALL $texi
38
39 cat > $texi <<EOF
40 \input texinfo
41 @documentencoding UTF-8
42 @settitle FAQ
43 @include faq.texi
44 @bye
45 EOF
46 mkinfo --output FAQ $texi
47
48 rm -f $texi
49
50 git checkout download.texi install.texi