aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/TODOs.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-13 14:25:15 -0300
committerEuAndreh <eu@euandre.org>2023-03-13 14:25:15 -0300
commit862271d704f1d096a26e0b3ff147b70ae94a64e3 (patch)
treecef7a195e779602beb9e951e6b7dbfabc69d5321 /aux/workflow/TODOs.sh
parentgit mv src/xyz/euandreh/* src/org/euandre/ (diff)
downloadpackage-repository-862271d704f1d096a26e0b3ff147b70ae94a64e3.tar.gz
package-repository-862271d704f1d096a26e0b3ff147b70ae94a64e3.tar.xz
rm -rf aux/ po/
Diffstat (limited to '')
-rwxr-xr-xaux/workflow/TODOs.sh64
1 files changed, 0 insertions, 64 deletions
diff --git a/aux/workflow/TODOs.sh b/aux/workflow/TODOs.sh
deleted file mode 100755
index 05cf3cb..0000000
--- a/aux/workflow/TODOs.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-set -eu
-
-TLD="$(cat aux/tld.txt)"
-PROJECT_UC=
-while getopts 'n:N:m:o:' flag; do
- case "$flag" in
- n)
- PROJECT="$OPTARG"
- ;;
- N)
- PROJECT_UC="$OPTARG"
- ;;
- m)
- MAILING_LIST="$OPTARG"
- ;;
- o)
- OUTDIR="$OPTARG"
- ;;
- *)
- exit 2
- ;;
- esac
-done
-shift $((OPTIND - 1))
-
-assert_arg() {
- if [ -z "$1" ]; then
- echo "Missing $2" >&2
- exit 2
- fi
-}
-
-assert_arg "${PROJECT:-}" '-n PROJECT'
-assert_arg "${MAILING_LIST:-}" '-m MAILING_LIST'
-assert_arg "${OUTDIR:-}" '-o OUTDIR'
-
-if [ -z "${PROJECT_UC:-}" ]; then
- PROJECT_UC="$PROJECT"
-fi
-
-
-td -H |
- cat aux/workflow/preamble.md - |
- sed \
- -e "s:@PROJECT_UC@:$PROJECT_UC:g" \
- -e "s:@PROJECT@:$PROJECT:g" \
- -e "s:@MAILING_LIST@:$MAILING_LIST:g" \
- -e "s:@TLD@:$TLD:g" |
- pandoc \
- --toc \
- --highlight-style pygments \
- --toc-depth=2 \
- -s \
- --metadata title="$PROJECT_UC - TODOs" \
- --metadata lang=en \
- -r commonmark \
- -w html \
- -H aux/workflow/favicon.html \
- -H aux/workflow/style.css |
- sed \
- -e 's:<a><a:<a:g' \
- -e 's:</a></a>:</a>:g' \
- > "$OUTDIR/TODOs.html"