aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-01-19 09:57:09 -0300
committerEuAndreh <eu@euandre.org>2022-01-19 10:05:17 -0300
commitc3aeb6446cab045e4514e212edd46779329b6c8f (patch)
tree92f3f22f654340530386829d8223abff9ded3afa
parentaux/workflow/repocheck.sh: Add more duplicates in check for idempotency (diff)
downloadgit-permalink-c3aeb6446cab045e4514e212edd46779329b6c8f.tar.gz
git-permalink-c3aeb6446cab045e4514e212edd46779329b6c8f.tar.xz
aux/workflow/TODOs.sh: Use td package over ad-hoc sed
-rw-r--r--aux/containers/guix/manifest.scm1
-rwxr-xr-xaux/workflow/TODOs.sh11
2 files changed, 3 insertions, 9 deletions
diff --git a/aux/containers/guix/manifest.scm b/aux/containers/guix/manifest.scm
index f4799bf..0e29cd3 100644
--- a/aux/containers/guix/manifest.scm
+++ b/aux/containers/guix/manifest.scm
@@ -15,6 +15,7 @@
gettext
po4a-text
mdpo-patched
+ td-latest
hunspell
hunspell-dict-en-utf8
hunspell-dict-pt-utf8
diff --git a/aux/workflow/TODOs.sh b/aux/workflow/TODOs.sh
index efc0b04..b7cbae1 100755
--- a/aux/workflow/TODOs.sh
+++ b/aux/workflow/TODOs.sh
@@ -40,20 +40,13 @@ if [ -z "${PROJECT_UC:-}" ]; then
fi
-# shellcheck disable=1004
-IDS_REGEX='s:^## \(TODO\|DOING\|WAITING\|MEETING\|INACTIVE\|NEXT\|CANCELLED\|DONE\|WONTFIX\) \(.*\) {#\(.*\)}\(.*\)$:## <a href="#\3"><span class="\1">\1</span> \2</a>\4\
-<pre class="header-anchor" id="\3">#\3</pre>\
-:g'
-TAGS_REGEX='s|tag:\([a-z0-9-]*\)|<span class="tag">\1</span>|g'
-
cat aux/workflow/preamble.md TODOs.md |
+ td -H |
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" \
- -e "$IDS_REGEX" \
- -e "$TAGS_REGEX" |
+ -e "s:@TLD@:$TLD:g" |
pandoc \
--toc \
--highlight-style pygments \