X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=makedist.sh;h=ce8ada0bed5d94bc8aef2073cdcbf68fea7d991e;hb=e3c84dd33e464b82233bf618d9e7c94cf58e4284;hp=ac2b83738135e6381b6c189e9f4e706cc5d13fe4;hpb=998062af6d715dd47fdc6f96f1588289e86c5a9b;p=goredo.git diff --git a/makedist.sh b/makedist.sh index ac2b837..ce8ada0 100755 --- a/makedist.sh +++ b/makedist.sh @@ -9,8 +9,7 @@ git clone . $tmp/goredo-$release cd $tmp/goredo-$release git checkout v$release -redo-ifchange module-name VERSION -mod_name=`cat module-name` +redo-ifchange VERSION ######################################################################## cd doc @@ -65,82 +64,59 @@ cd .. ######################################################################## -mkdir -p src/$mod_name -mv *.go go.* src/$mod_name - -mods=" -go.cypherpunks.ru/recfile -go.cypherpunks.ru/tai64n -golang.org/x/sys -golang.org/x/term -lukechampine.com/blake3 -" - -for mod in $mods; do - mod_path=$(sed -n "s# // indirect## ; s#^ \($mod\) \(.*\)\$#\1@\2#p" src/$mod_name/go.mod) - [ -n "$mod_path" ] - mkdir -p src/$mod - ( cd $GOPATH/pkg/mod/$mod_path ; tar cf - --exclude ".git*" * ) | tar xfC - src/$mod - chmod -R +w src/$mod -done - -for mod in github.com/klauspost/cpuid; do - mod_path=$(sed -n "s#^\($mod\) \(.*\) h1:.*\$#\1@\2#p" src/$mod_name/go.sum | sed /go.mod/d | sort -n -r | sed -n 1p) - [ -n "$mod_path" ] - mkdir -p src/$mod - ( cd $GOPATH/pkg/mod/$mod_path ; tar cf - --exclude ".git*" * ) | tar xfC - src/$mod - chmod -R +w src/$mod -done - -cat > $tmp/includes < "$tarball".asc +meta4-create -file "$tarball" -mtime "$tarball" -sig "$tarball".asc \ + http://www.goredo.cypherpunks.ru/download/"$tarball" > "$tarball".meta4 + size=$(( $(stat -f %z $tarball) / 1024 )) hash=$(gpg --print-md SHA256 < $tarball) release_date=$(date "+%Y-%m-%d") +release_underscored=`echo $release | tr . _` cat <8 ------------------------ @@ -161,5 +137,5 @@ GPG key ID: 0x3A528DDE952C7E93 goredo releases Fingerprint: 7531 BB84 FAF0 BF35 960C 63B9 3A52 8DDE 952C 7E93 Please send questions regarding the use of goredo, bug reports and patches -to mailing list: https://lists.cypherpunks.ru/pipermail/goredo-devel/ +to mailing list: http://lists.cypherpunks.ru/goredo_002ddevel.html EOF