X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=makedist.sh;h=1bbaa2a19999502a3ae8539a341f8c444aa093fa;hb=28441d0c2fd31e198c33c3e967faee6b32e512c1;hp=d7f992e1b9a80c74824d77864313c454faa5b9b7;hpb=7711d3fca429d8d19fd8a6923894633b1d3d8f32;p=gogost.git diff --git a/makedist.sh b/makedist.sh index d7f992e..1bbaa2a 100755 --- a/makedist.sh +++ b/makedist.sh @@ -5,41 +5,27 @@ tmp=$(mktemp -d) release=$1 [ -n "$release" ] -redo-ifchange module-name streebog256 -mod_name=`cat module-name` +redo-ifchange streebog256 git clone . $tmp/gogost-$release cd $tmp/gogost-$release git checkout v$release - -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 - -rm module-name.do clean.do -echo $mod_name > module-name -find . -name "*.do" -exec perl -i -npe "s/^go/GOPATH=\`pwd\` go/" {} \; - -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 < $texi < $texi < $texi < $texi < $texi < $texi < "$tarball".asc +meta4-create -file "$tarball" -mtime "$tarball" -sig "$tarball".asc \ + http://www.gogost.cypherpunks.ru/"$tarball" > "$tarball".meta4 -tarball=gogost-"$release".tar.xz size=$(( $(stat -f %z $tarball) / 1024 )) hash=$(gpg --print-md SHA256 < $tarball) hashsb=$($HOME/work/gogost/streebog256 < $tarball) @@ -89,7 +92,10 @@ release_date=$(date "+%Y-%m-%d") cat < 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 <