#!/bin/sh -ex cur=$(pwd) tmp=$(mktemp -d) release=$1 [ -n "$release" ] git clone . $tmp/gocheese-$release cd $tmp/gocheese-$release git checkout v$release redo-ifchange VERSION go mod vendor cat > doc/download.texi < $texi < "$tarball".asc meta4-create -file "$tarball" -mtime "$tarball" -sig "$tarball".asc \ http://www.gocheese.cypherpunks.ru/download/"$tarball" \ http://y.www.gocheese.cypherpunks.ru/download/"$tarball" > "$tarball".meta4 size=$(( $(stat -f %z $tarball) / 1024 )) hash=$(gpg --print-md SHA256 < $tarball) release_date=$(date "+%Y-%m-%d") cat <