diff options
| author | EuAndreh <eu@euandre.org> | 2021-02-22 22:41:40 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-02-22 22:41:40 -0300 |
| commit | 045f4415ea51d0c82f63322c94ca0adfbd02a404 (patch) | |
| tree | cdda68404f87e1b58a0f639b0e8f127be929fb14 /aux/workflow | |
| parent | fake-symlinks: README: Remove unused file (diff) | |
| download | dotfiles-045f4415ea51d0c82f63322c94ca0adfbd02a404.tar.gz dotfiles-045f4415ea51d0c82f63322c94ca0adfbd02a404.tar.xz | |
fake-symlinks: README.sh: Generate "Links" section
Diffstat (limited to 'aux/workflow')
| -rwxr-xr-x | aux/workflow/README.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/aux/workflow/README.sh b/aux/workflow/README.sh index b9fa38e2..83132744 100755 --- a/aux/workflow/README.sh +++ b/aux/workflow/README.sh @@ -5,7 +5,7 @@ mkdir -p public PROJECT_UC="$1" PROJECT="$2" -README="${3:-README.md}" +MAILING_LIST="$3" RELEASES_LIST="$(mktemp)" for version in $(git tag); do @@ -18,7 +18,20 @@ if [ -s "$RELEASES_LIST" ]; then cat "$RELEASES_LIST" >> "$RELEASES" fi -cat "$README" "$RELEASES" | \ +LINKS="$(mktemp)" +cat <<EOF > "$LINKS" + +# Links + +- [home page](https://$PROJECT.euandreh.xyz) +- [source code](https://git.euandreh.xyz/$PROJECT/about/) +- [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 + +cat "README.md" "$LINKS" "$RELEASES" | \ pandoc --toc \ --highlight-style pygments \ --toc-depth=2 \ |
