Commit: 84e417cdc46d6180892692c649e4ea9bfd4dce0d
Parent: 19fef60e9ea46b084ac369a03964e92fb344495b
Author: Randy Palamar
Date: Fri, 14 Jun 2024 06:26:27 -0600
texclean: also remove minted folders
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/texclean b/bin/texclean
@@ -1,7 +1,5 @@
#!/bin/sh
-set -e
-
# cleanup tex output clutter
case "$1" in
@@ -10,7 +8,9 @@ case "$1" in
d=$(dirname "$f")
b="${f%.*}"
junk=$(find "$d" -type f | grep -E -e ".*\\.log" -e "^$b\\.(4tc|xref|tmp|pyc|pyg|pyo|fls|vrb|fdb_latexmk|bak|swp|aux|log|synctex\\(busy\\)|lof|lot|maf|idx|mtc|mtc0|nav|out|snm|toc|bcf|run\\.xml|synctex\\.gz|blg|bbl)")
- rm $junk
+ more=$(find "$d" -type d | grep "_min*")
+ [ -n "$junk" ] && rm $junk
+ [ -n "$more" ] && rm -r $more
;;
*) echo "usage: $0: file.tex" ;;
esac