tmp=$(mktemp -d)
release=$1
[ -n "$release" ]
+MAKEINFO=${MAKEINFO:=makeinfo}
git clone . $tmp/gocheese-$release
cd $tmp/gocheese-$release
git checkout v$release
-mod_name=$(sed -n 's/^module //p' go.mod)
+redo-ifchange module-name
+mod_name=`cat module-name`
crypto_mod_path=$(sed -n 's#^require \(golang.org/x/crypto\) \(.*\)$#\1@\2#p' go.mod)
mkdir -p src/$mod_name
mv *.go go.mod go.sum src/$mod_name
You can obtain releases source code prepared tarballs on
@url{http://www.gocheese.cypherpunks.ru/}.
EOF
-make gocheese.info
+redo gocheese.info
texi=$(mktemp)
cat > $texi <<EOF
@bye
EOF
perl -i -p -e "s/.verbatiminclude PUBKEY.asc/Look in PUBKEY.asc file./" install.texi
-makeinfo --plaintext -o INSTALL $texi
+$MAKEINFO --plaintext -o INSTALL $texi
rm $texi
-rm -rf .git .gitignore style.css makedist.sh www.mk
+rm -rf .redo .git .gitignore style.css makedist.sh www.do module-name.do
+echo 'GOPATH=`pwd` ${GO:=go} build -o $3 -ldflags "-X main.Version=`cat VERSION`" `cat module-name`' > gocheese.do
+echo 'GOPATH=`pwd` ${GO:=go} test `cat module-name`/... >&2' > test.do
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;