diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-13 17:52:36 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-13 17:52:36 -0500 |
commit | bf434758d9c60c323d571bc1e2e329edaad06fa3 (patch) | |
tree | c7cdaaba012b4560d49aaadc5e588c9563348214 /.local/bin/todotable | |
parent | a0cab8cd1a13e665ee83efecf37fa8cf87bf2c46 (diff) |
More debloating
Diffstat (limited to '.local/bin/todotable')
-rwxr-xr-x | .local/bin/todotable | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.local/bin/todotable b/.local/bin/todotable deleted file mode 100755 index 6609a1f..0000000 --- a/.local/bin/todotable +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -file=$(readlink -f "$1") -dir=$(dirname "$file") -base="${file%.*}" - -contents="$1" -shift -for i in "$@"; do - output=$output"\n"$(cat "$contents" | grep -n "$i" | sed 's/\([0-9]*\):.*'"$i"'.\(.*\)$/-\ \*\*'"$i"':\*\*\ \2\ (line \1)/g' - ) -done - - -if [ "$#" -eq $(printf $output | wc -l ) ]; -then - rm "$base"-tdtable.pdf - exit 0 -else - echo -e '---\ntitle: Checklist:\n.PP'"$output" | groffdown | refer -PS -e "-p$REFERBIB" | groff -me -ms -kejpt -T pdf > "$base"-tdtable.pdf -fi -# Uncomment for debugging: -# echo -e '---\ntitle: TODOs\n.PP'"$output" > "$base"-tdtable.gd |