aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-06-03 21:37:28 -0300
committerEuAndreh <eu@euandre.org>2022-06-03 21:37:30 -0300
commit6080ebcdf6069558a629732a1c75e1197b25b228 (patch)
tree491b9fe5a3d08cc068acbe51f9b033c6a81fce42
parentMakefile: Indent $(derived-assets) variable (diff)
downloadeuandre.org-6080ebcdf6069558a629732a1c75e1197b25b228.tar.gz
euandre.org-6080ebcdf6069558a629732a1c75e1197b25b228.tar.xz
aux/workflow/TODOs.sh: Emit HTML to STDOUT; amend Makefile
-rw-r--r--Makefile2
-rwxr-xr-xaux/workflow/TODOs.sh9
2 files changed, 3 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 580e05c..cd9ecbe 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ favicon.ico: static/lord-favicon.ico
ln -fs static/lord-favicon.ico $@
TODOs.html: TODOs.md
- sh aux/workflow/TODOs.sh -n website -m public-inbox -o .
+ sh aux/workflow/TODOs.sh -n website -m public-inbox > $@
diff --git a/aux/workflow/TODOs.sh b/aux/workflow/TODOs.sh
index 05cf3cb..8bba1ec 100755
--- a/aux/workflow/TODOs.sh
+++ b/aux/workflow/TODOs.sh
@@ -3,7 +3,7 @@ set -eu
TLD="$(cat aux/tld.txt)"
PROJECT_UC=
-while getopts 'n:N:m:o:' flag; do
+while getopts 'n:N:m:' flag; do
case "$flag" in
n)
PROJECT="$OPTARG"
@@ -14,9 +14,6 @@ while getopts 'n:N:m:o:' flag; do
m)
MAILING_LIST="$OPTARG"
;;
- o)
- OUTDIR="$OPTARG"
- ;;
*)
exit 2
;;
@@ -33,7 +30,6 @@ assert_arg() {
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"
@@ -60,5 +56,4 @@ td -H |
-H aux/workflow/style.css |
sed \
-e 's:<a><a:<a:g' \
- -e 's:</a></a>:</a>:g' \
- > "$OUTDIR/TODOs.html"
+ -e 's:</a></a>:</a>:g'