release=$1
[ -n "$release" ]
+redo-ifchange streebog256
git clone . $tmp/gogost-$release
cd $tmp/gogost-$release
-git checkout $release
-git submodule update --init
-
-mkdir -p src/cypherpunks.ru/gogost/vendor
-cat > $tmp/includes <<EOF
-golang.org/x/crypto/AUTHORS
-golang.org/x/crypto/CONTRIBUTORS
-golang.org/x/crypto/LICENSE
-golang.org/x/crypto/PATENTS
-golang.org/x/crypto/README
-golang.org/x/crypto/pbkdf2
+git checkout v$release
+redo VERSION
+go mod vendor
+mkdir contrib
+cp ~/work/redo/minimal/do contrib/do
+
+cat > download.texi <<EOF
+You can obtain releases source code prepared tarballs on
+@url{http://www.gogost.cypherpunks.ru/}.
EOF
-tar cfCI - src $tmp/includes | tar xfC - src/cypherpunks.ru/gogost/vendor
-find . -name .git -type d | xargs rm -fr
-rm -fr www* makedist* TODO src/golang.org $tmp/includes
+
+mkinfo() {
+ ${MAKEINFO:-makeinfo} --plaintext \
+ --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
+ --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
+ -D "VERSION `cat VERSION`" $@
+}
+
+texi=$(mktemp)
+cat > $texi <<EOF
+\input texinfo
+@documentencoding UTF-8
+@settitle INSTALL
+@include install.texi
+@bye
+EOF
+mkinfo --output INSTALL $texi
+
+cat > $texi <<EOF
+\input texinfo
+@documentencoding UTF-8
+@settitle NEWS
+@include news.texi
+@bye
+EOF
+mkinfo --output NEWS $texi
+
+cat > $texi <<EOF
+\input texinfo
+@documentencoding UTF-8
+@settitle FAQ
+@include faq.texi
+@bye
+EOF
+mkinfo --output FAQ $texi
+
+rm -rf .git
+redo-cleanup full
+rm -f \
+ $texi \
+ *.texi \
+ .gitignore \
+ clean.do \
+ makedist.sh \
+ style.css \
+ TODO \
+ VERSION.do \
+ www.do
+
+perl -i -npe "s/build/build -mod=vendor/" default.do
+perl -i -npe "s/test/test -mod=vendor/" bench.do
+
+find . -type d -exec chmod 755 {} +
+find . -type f -exec chmod 644 {} +
+chmod +x contrib/do
cd ..
-tar cvf gogost-"$release".tar gogost-"$release"
+tar cvf gogost-"$release".tar --uid=0 --gid=0 --numeric-owner gogost-"$release"
xz -9 gogost-"$release".tar
gpg --detach-sign --sign --local-user 82343436696FC85A gogost-"$release".tar.xz
tarball=gogost-"$release".tar.xz
-size=$(( $(wc -c < $tarball) / 1024 ))
+size=$(( $(stat -f %z $tarball) / 1024 ))
hash=$(gpg --print-md SHA256 < $tarball)
hashsb=$($HOME/work/gogost/streebog256 < $tarball)
+release_date=$(date "+%Y-%m-%d")
cat <<EOF
An entry for documentation:
-@item $release @tab $size KiB
+@item @ref{Release $release, $release} @tab $release_date @tab $size KiB
@tab @url{gogost-${release}.tar.xz, link} @url{gogost-${release}.tar.xz.sig, sign}
@tab @code{$hash}
@tab @code{$hashsb}
------------------------ >8 ------------------------
-GoGOST'es home page is: http://www.cypherpunks.ru/gogost/
+GoGOST'es home page is: http://www.gogost.cypherpunks.ru/
Source code and its signature for that version can be found here:
- http://www.cypherpunks.ru/gogost/gogost-${release}.tar.xz ($size KiB)
- http://www.cypherpunks.ru/gogost/gogost-${release}.tar.xz.sig
+ http://www.gogost.cypherpunks.ru/gogost-${release}.tar.xz ($size KiB)
+ http://www.gogost.cypherpunks.ru/gogost-${release}.tar.xz.sig
Streebog-256 hash: $hashsb
SHA256 hash: $hash
GoGOST releases <gogost at cypherpunks dot ru>
Please send questions regarding the use of GoGOST, bug reports and patches
-to mailing list: https://lists.cypherpunks.ru/mailman/listinfo/gost
+to mailing list: http://lists.cypherpunks.ru/gost.html
EOF
cat <<EOF
------------------------ >8 ------------------------
-Домашняя страница GoGOST: http://www.cypherpunks.ru/gogost/
+Домашняя страница GoGOST: http://www.gogost.cypherpunks.ru/
Исходный код и его подпись для этой версии могут быть найдены здесь:
- http://www.cypherpunks.ru/gogost/gogost-${release}.tar.xz ($size KiB)
- http://www.cypherpunks.ru/gogost/gogost-${release}.tar.xz.sig
+ http://www.gogost.cypherpunks.ru/gogost-${release}.tar.xz ($size KiB)
+ http://www.gogost.cypherpunks.ru/gogost-${release}.tar.xz.sig
Streebog-256 хэш: $hashsb
SHA256 хэш: $hash
Пожалуйста, все вопросы касающиеся использования GoGOST, отчёты об
ошибках и патчи отправляйте в gost почтовую рассылку:
-https://lists.cypherpunks.ru/mailman/listinfo/gost
+http://lists.cypherpunks.ru/gost.html
EOF
mv $tmp/$tarball $tmp/"$tarball".sig $cur/gogost.html/
+rm -fr $tmp