X-Git-Url: http://www.git.cypherpunks.ru/?p=gogost.git;a=blobdiff_plain;f=makedist.sh;h=c8f0d760a254f5ac7cd4c7a4885f1775b9958aaf;hp=e6f06791c9da2c36a9ef2fdbeedefd949b5fef0e;hb=f4078e53da769ade0d92e80ad9093040e7f71d58;hpb=d331cc1a902efb214201d7b4b28e8940786fbcef diff --git a/makedist.sh b/makedist.sh index e6f0679..c8f0d76 100755 --- a/makedist.sh +++ b/makedist.sh @@ -5,33 +5,117 @@ tmp=$(mktemp -d) release=$1 [ -n "$release" ] +redo-ifchange streebog256 git clone . $tmp/gogost-$release cd $tmp/gogost-$release -git checkout $release +git checkout v$release +redo module-name VERSION +mod_name=`cat module-name` + +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 + +echo $mod_name > module-name +find . -name "*.do" -exec perl -i -npe "s/^go/GOPATH=\`pwd\` go/" {} \; +mkdir contrib +cp ~/work/redo/minimal/do contrib/do + +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 + +cat > download.texi < $texi < $texi < $texi <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 @@ -77,12 +161,12 @@ GoGOST это свободное программное обеспечение ------------------------ >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 @@ -95,3 +179,4 @@ https://lists.cypherpunks.ru/mailman/listinfo/gost EOF mv $tmp/$tarball $tmp/"$tarball".sig $cur/gogost.html/ +rm -fr $tmp