X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=makedist.sh;h=879a37357dd02a36626854f1f72ff94ae01eb144;hb=0da4d634ac5368d024489baf4bdd5d422b84dd84;hp=2fbbc3516ae579f23aeba22f71e858060a16058e;hpb=30588af8972ef366e0eb9a3e5aac799946de0e1a;p=gogost.git diff --git a/makedist.sh b/makedist.sh index 2fbbc35..879a373 100755 --- a/makedist.sh +++ b/makedist.sh @@ -7,7 +7,7 @@ release=$1 git clone . $tmp/gogost-$release cd $tmp/gogost-$release -git checkout $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) @@ -22,7 +22,8 @@ mv \ gost341264 \ gost3413 \ mgm \ - internal gogost.go go.mod go.sum src/$mod_name + 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 ; \ @@ -30,7 +31,7 @@ mkdir -p src/golang.org/x/crypto tar xfC - src/golang.org/x/crypto find . -name .git -type d | xargs rm -fr -rm -f www* news.texi style.css makedist* TODO +rm -f *.texi www.mk style.css makedist* TODO find . -type d -exec chmod 700 {} \; find . -type f -exec chmod 600 {} \;