X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=makedist.sh;h=d8ce491b84954e8789ad04623f60703a6292b514;hb=acc3fc03b1039c0f6a863e290e282f179794faa9;hp=87e7b6f988d32dd022347249bae203f51126de69;hpb=232408af2996be5a87350e81c151508ca55cd171;p=gocheese.git diff --git a/makedist.sh b/makedist.sh index 87e7b6f..d8ce491 100755 --- a/makedist.sh +++ b/makedist.sh @@ -9,74 +9,24 @@ git clone . $tmp/gocheese-$release cd $tmp/gocheese-$release git checkout v$release -redo-ifchange module-name VERSION -mod_name=`cat module-name` +redo-ifchange VERSION -cat > download.texi < doc/download.texi < $tmp/includes < $texi < gocheese.do -echo 'GOPATH=`pwd` ${GO:=go} test `cat module-name`/... >&2' > test.do +rm -rf .git .gitignore doc/.gitignore doc/style.css makedist.sh doc/www.do VERSION.do +redo-cleanup full +perl -i -npe "s/go} build/go} build -mod=vendor/" gocheese.do +perl -i -npe "s/go} test/go} test -mod=vendor/" test.do cp ~/work/redo/minimal/do contrib/do -find . -type d -exec chmod 755 {} \; -find . -type f -exec chmod 644 {} \; -chmod 755 contrib/pyshop2packages.sh contrib/do +find . -type d -exec chmod 755 {} + +find . -type f -exec chmod 644 {} + +chmod +x contrib/pyshop2packages.sh contrib/do cd .. tar cvf gocheese-"$release".tar --uid=0 --gid=0 --numeric-owner gocheese-"$release" -xz -9 gocheese-"$release".tar -gpg --detach-sign --sign --local-user CD5CD01F55343D88 gocheese-"$release".tar.xz +zstd -19 -v gocheese-"$release".tar +tarball=gocheese-"$release".tar.zst +gpg --detach-sign --sign --local-user CD5CD01F55343D88 $tarball +gpg --enarmor < "$tarball".sig | + sed "/^Comment:/d ; s/ARMORED FILE/SIGNATURE/" > "$tarball".asc +meta4-create -file "$tarball" -mtime "$tarball" -sig "$tarball".asc \ + http://www.gocheese.cypherpunks.ru/download/"$tarball" > "$tarball".meta4 -tarball=gocheese-"$release".tar.xz size=$(( $(stat -f %z $tarball) / 1024 )) hash=$(gpg --print-md SHA256 < $tarball) release_date=$(date "+%Y-%m-%d") @@ -113,8 +69,11 @@ release_date=$(date "+%Y-%m-%d") cat <