diff options
author | EuAndreh <eu@euandre.org> | 2021-07-20 17:59:00 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-07-20 17:59:00 -0300 |
commit | e36045d61c208d915018483ed1a4d278768fe773 (patch) | |
tree | b205b4232adc185c115c8483337d7c2bbbd612ba /aux/workflow/TODOs.sh | |
parent | git mv public-key.txt public.asc (diff) | |
download | euandre.org-e36045d61c208d915018483ed1a4d278768fe773.tar.gz euandre.org-e36045d61c208d915018483ed1a4d278768fe773.tar.xz |
aux/: Update
Diffstat (limited to '')
-rwxr-xr-x | aux/workflow/TODOs.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/aux/workflow/TODOs.sh b/aux/workflow/TODOs.sh index 6c24c3e..96cb064 100755 --- a/aux/workflow/TODOs.sh +++ b/aux/workflow/TODOs.sh @@ -39,21 +39,21 @@ if [ -z "${PROJECT_UC:-}" ]; then PROJECT_UC="$PROJECT" fi -TODOS_ADD_REGEX='s/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE) (.*) \{#(.*?)\}$/## <a href="#\3"><span class="\1">\1<\/span> \2<\/a>\n<pre class="header-anchor" id="\3">#\3<\/pre>\n/' +TODOS_ADD_REGEX='s/^## (TODO|DOING|WAITING|MEETING|INACTIVE|NEXT|CANCELLED|DONE|WONTFIX) (.*) \{#(.*?)\}(.*)$/## <a href="#\3"><span class="\1">\1<\/span> \2<\/a>\4\n<pre class="header-anchor" id="\3">#\3<\/pre>\n/' +TAGS_REGEX='s/tag:([\w-]+)/<span class="tag">\1<\/span>/g' TODOS_CLEANUP_REGEX1='s/(<a><a)/<a/' TODOS_CLEANUP_REGEX2='s/<\/a><\/a>/<\/a>/' -TAGS_REGEX='s/tag:([\w-]+)/<span class="tag">\1<\/span>/g' - 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" \ < aux/workflow/preamble.md | \ printf \ - '%s\n\n%s' \ - "$(cat -)" \ - "$(perl -pe "$TODOS_ADD_REGEX" TODOs.md | perl -pe "$TAGS_REGEX")" | \ + '%s\n\n' \ + "$(cat - TODOs.md)" | \ + perl -pe "$TODOS_ADD_REGEX" | \ + perl -pe "$TAGS_REGEX" | \ pandoc \ --toc \ --highlight-style pygments \ |