release=$1
[ -n "$release" ]
+redo-ifchange streebog256
git clone . $tmp/gogost-$release
cd $tmp/gogost-$release
git checkout v$release
-
-mod_name=$(sed -n 's/^module //p' go.mod)
-crypto_mod_path=$(sed -n 's#^require \(golang.org/x/crypto\) \(.*\)$#\1@\2#p' go.mod)
-mkdir -p src/$mod_name
-mv \
- gost28147 \
- gost3410 \
- gost34112012256 \
- gost34112012512 \
- gost341194 \
- gost3412128 \
- gost341264 \
- gost3413 \
- mgm \
- prfplus \
- cmd internal gogost.go go.mod go.sum src/$mod_name
-
-mkdir -p src/golang.org/x/crypto
-( cd $GOPATH/pkg/mod/$crypto_mod_path ; \
- tar cf - AUTHORS CONTRIBUTORS LICENSE PATENTS README.md pbkdf2 hkdf ) |
- tar xfC - src/golang.org/x/crypto
+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://gocheese.cypherpunks.ru/}.
+@url{http://www.gogost.cypherpunks.ru/}.
EOF
+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
@include install.texi
@bye
EOF
-makeinfo --plaintext -o INSTALL $texi
-rm $texi
+mkinfo --output INSTALL $texi
cat > $texi <<EOF
\input texinfo
@include news.texi
@bye
EOF
-makeinfo --plaintext -o NEWS $texi
+mkinfo --output NEWS $texi
-find . -name .git -type d | xargs rm -fr
-rm -f *.texi www.mk style.css makedist.sh TODO
-
-find . -type d -exec chmod 755 {} \;
-find . -type f -exec chmod 644 {} \;
+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 --uid=0 --gid=0 --numeric-owner gogost-"$release"
------------------------ >8 ------------------------
-GoGOST'es home page is: http://gogost.cypherpunks.ru/
+GoGOST'es home page is: http://www.gogost.cypherpunks.ru/
Source code and its signature for that version can be found here:
- http://gogost.cypherpunks.ru/gogost-${release}.tar.xz ($size KiB)
- http://gogost.cypherpunks.ru/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://gogost.cypherpunks.ru/
+Домашняя страница GoGOST: http://www.gogost.cypherpunks.ru/
Исходный код и его подпись для этой версии могут быть найдены здесь:
- http://gogost.cypherpunks.ru/gogost-${release}.tar.xz ($size KiB)
- http://gogost.cypherpunks.ru/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