8 git clone . $tmp/gocheese-$release
9 cd $tmp/gocheese-$release
10 git checkout v$release
12 redo-ifchange module-name VERSION
13 mod_name=`cat module-name`
15 cat > download.texi <<EOF
16 You can obtain releases source code prepared tarballs on
17 @url{http://www.gocheese.cypherpunks.ru/}.
21 crypto_mod_path=$(sed -n 's#^require \(golang.org/x/crypto\) \(.*\)$#\1@\2#p' go.mod)
22 mkdir -p src/$mod_name
23 mv *.go go.mod go.sum src/$mod_name
30 mod_path=$(sed -n "s# // indirect## ; s#^ \($mod\) \(.*\)\$#\1@\2#p" src/$mod_name/go.mod)
33 ( cd $GOPATH/pkg/mod/$mod_path ; tar cf - --exclude ".git*" * ) | tar xfC - src/$mod
37 for mod in golang.org/x/sys; do
38 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)
41 ( cd $GOPATH/pkg/mod/$mod_path ; tar cf - --exclude ".git*" * ) | tar xfC - src/$mod
45 cat > $tmp/includes <<EOF
46 golang.org/x/crypto/AUTHORS
47 golang.org/x/crypto/argon2
48 golang.org/x/crypto/blake2b
49 golang.org/x/crypto/CONTRIBUTORS
50 golang.org/x/crypto/go.mod
51 golang.org/x/crypto/go.sum
52 golang.org/x/crypto/LICENSE
53 golang.org/x/crypto/PATENTS
54 golang.org/x/crypto/README.md
55 golang.org/x/net/AUTHORS
56 golang.org/x/net/CONTRIBUTORS
57 golang.org/x/net/go.mod
58 golang.org/x/net/go.sum
59 golang.org/x/net/LICENSE
60 golang.org/x/net/netutil
61 golang.org/x/net/PATENTS
62 golang.org/x/net/README.md
63 golang.org/x/sys/AUTHORS
64 golang.org/x/sys/CONTRIBUTORS
66 golang.org/x/sys/go.mod
67 golang.org/x/sys/LICENSE
68 golang.org/x/sys/PATENTS
69 golang.org/x/sys/README.md
71 tar cfCI - src $tmp/includes | tar xfC - $tmp
72 rm -fr src/golang.org $tmp/includes
73 mv $tmp/golang.org src
76 ${MAKEINFO:=makeinfo} --plaintext \
77 --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
78 --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
79 -D "VERSION `cat VERSION`" $@
85 @documentencoding UTF-8
90 perl -i -p -e "s/.verbatiminclude PUBKEY.asc/Look in PUBKEY.asc file./" install.texi
91 mkinfo --output INSTALL $texi
94 rm -rf .redo .git .gitignore style.css makedist.sh www.do module-name.do VERSION.do
95 echo 'GOPATH=`pwd` ${GO:=go} build -o $3 `cat module-name`' > gocheese.do
96 echo 'GOPATH=`pwd` ${GO:=go} test `cat module-name`/... >&2' > test.do
97 cp ~/work/redo/minimal/do contrib/do
99 find . -type d -exec chmod 755 {} \;
100 find . -type f -exec chmod 644 {} \;
101 chmod 755 contrib/pyshop2packages.sh contrib/do
104 tar cvf gocheese-"$release".tar --uid=0 --gid=0 --numeric-owner gocheese-"$release"
105 xz -9 gocheese-"$release".tar
106 gpg --detach-sign --sign --local-user CD5CD01F55343D88 gocheese-"$release".tar.xz
108 tarball=gocheese-"$release".tar.xz
109 size=$(( $(stat -f %z $tarball) / 1024 ))
110 hash=$(gpg --print-md SHA256 < $tarball)
111 release_date=$(date "+%Y-%m-%d")
114 An entry for documentation:
115 @item $release @tab $release_date @tab $size KiB
116 @tab @url{gocheese-${release}.tar.xz, link} @url{gocheese-${release}.tar.xz.sig, sign}
120 mv $tmp/$tarball $tmp/"$tarball".sig $cur/gocheese.html/