From 9186cdb13df3a481fafb4139ba0df71ea8f0f793 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Tue, 10 Jan 2023 01:21:35 +0000 Subject: [PATCH] Verbose formatting on the terminal, because why not? --- tools/bin/td | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/bin/td b/tools/bin/td index 30903a6..2da437d 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -137,6 +137,9 @@ recipe_clean() { # then running indent(1) on each source code file. recipe_format() { find src -name '*.c' -or -name '*.h' | while IFS= read -r src; do + if [ -t 1 ]; then + printf "FMT %s%*c\r" $(basename "$src") "16" " " + fi # Update the headers srcHeader=$(grep -n -m 1 '^ \*/' "$src" | cut -d ':' -f 1) head "-n$srcHeader" "$src" | @@ -148,6 +151,9 @@ recipe_format() { rm $(basename "$src").BAK fi done + if [ -t 1 ]; then + printf "%*c\n" "50" " " + fi } # Deploy the Telodendria website by copying the required files to