blob: 2f63ded7588dfc36e02f5f20c8ca7d73166a5f25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#!/bin/sh
set -eu
mkdir -p public
PROJECT="$1"
MAILING_LIST="$2"
EXPECTED="$(mktemp)"
cat <<EOF >> "$EXPECTED"
For running the extra development-only checks, run:
\`\`\`shell
$ make dev-check
\`\`\`
and for generating the documentation HTML and website, run:
\`\`\`shell
$ make public
\`\`\`
# Links
- [home page](https://$PROJECT.euandreh.xyz)
- [source code](https://git.euandreh.xyz/$PROJECT/)
- [bug tracking](https://$PROJECT.euandreh.xyz/TODOs.html)
- [mailing list](https://lists.sr.ht/~euandreh/$MAILING_LIST?search=%5B$PROJECT%5D)
- [CI logs](https://$PROJECT.euandreh.xyz/ci.html)
- [CHANGELOG](https://$PROJECT.euandreh.xyz/CHANGELOG.html)
EOF
RELEASES_LIST="$(mktemp)"
for version in $(git tag | perl -e 'print reverse <>'); do
echo "- version [$version](https://git.euandreh.xyz/$PROJECT/snapshot/$PROJECT-$version.tar.gz) ([sig](https://git.euandreh.xyz/$PROJECT/snapshot/$PROJECT-$version.tar.gz.asc)), released in $(git log -1 --format=%cd --date=short "$version")" >> "$RELEASES_LIST"
done
if [ -s "$RELEASES_LIST" ]; then
printf '\n\n# Releases\n\n' >> "$EXPECTED"
cat "$RELEASES_LIST" >> "$EXPECTED"
fi
if ! tail -n "$(wc -l < "$EXPECTED")" README.md | diff - "$EXPECTED"; then
echo 'Missing metadata at the end of README.md file'
exit 1
fi
|