]> Cypherpunks.ru repositories - gocheese.git/blobdiff - makedist.sh
More convenient trusted-host
[gocheese.git] / makedist.sh
diff --git a/makedist.sh b/makedist.sh
deleted file mode 100755 (executable)
index 881d634..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/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 > download.texi <<EOF
-You can obtain releases source code prepared tarballs on
-@url{http://www.gocheese.cypherpunks.ru/}.
-EOF
-redo gocheese.info
-
-mkinfo() {
-    ${MAKEINFO:=makeinfo} --plaintext \
-        --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
-        --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
-        -D "VERSION `cat VERSION`" $@
-}
-
-texi=$(mktemp)
-cat > $texi <<EOF
-\input texinfo
-@documentencoding UTF-8
-@settitle INSTALL
-@include install.texi
-@bye
-EOF
-perl -i -p -e "s/.verbatiminclude PUBKEY.asc/Look in PUBKEY.asc file./" install.texi
-mkinfo --output INSTALL $texi
-rm $texi
-
-rm -rf .redo .git .gitignore style.css makedist.sh www.do VERSION.do
-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 +x contrib/pyshop2packages.sh contrib/do
-
-cd ..
-tar cvf gocheese-"$release".tar --uid=0 --gid=0 --numeric-owner gocheese-"$release"
-zstd -19 -v gocheese-"$release".tar
-gpg --detach-sign --sign --local-user CD5CD01F55343D88 gocheese-"$release".tar.zst
-
-tarball=gocheese-"$release".tar.zst
-size=$(( $(stat -f %z $tarball) / 1024 ))
-hash=$(gpg --print-md SHA256 < $tarball)
-release_date=$(date "+%Y-%m-%d")
-
-cat <<EOF
-An entry for documentation:
-@item $release @tab $release_date @tab $size KiB
-@tab @url{gocheese-${release}.tar.zst, link} @url{gocheese-${release}.tar.zst.sig, sign}
-@tab @code{$hash}
-EOF
-
-mv $tmp/$tarball $tmp/"$tarball".sig $cur/gocheese.html/