X-Git-Url: http://www.git.cypherpunks.ru/?p=gogost.git;a=blobdiff_plain;f=makedist.sh;h=c0bda20d98175f36b5c79162e78cece367a08a1d;hp=6c79acc4f0ece84765ee378882619e053acc5334;hb=f67aa7535756b19758df610771b36f01e8475788;hpb=b99823a7000e512f39a92e492675606aaeb9f45b diff --git a/makedist.sh b/makedist.sh index 6c79acc..c0bda20 100755 --- a/makedist.sh +++ b/makedist.sh @@ -7,19 +7,68 @@ release=$1 git clone . $tmp/gogost-$release cd $tmp/gogost-$release -git checkout $release - -crypto_path=src/cypherpunks.ru/gogost/vendor/golang.org/x/crypto -mkdir -p $crypto_path -( cd $cur/gopath/pkg/mod/golang.org/x/crypto@v0.0.0-20190701094942-4def268fd1a4 ; \ +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 - $crypto_path + tar xfC - src/golang.org/x/crypto + +cat > download.texi < $texi < $texi < $texi <