This repository has been archived on 2023-02-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
langue-phundrak-com/clean
Lucien Cartier-Tilet 08b9a214f6 [Meta] Update clean script, add extension to gitignore
clean script is now written in bash, now uses fd instead of find

.bbl extension has been added to gitignore and to the list of files to
be deleted
2021-01-26 00:37:01 +01:00

13 lines
257 B
Bash
Executable File

#!/usr/bin/env bash
FEXT=("pdf" "tex" "aux" "log" "toc" "out" "html" "lol" "lot" "epub" "bbl")
DIRS=("auto" "_minted*" "svg-inkscape")
for e in ${FEXT[*]}; do
fd -uu -e "$e" -x rm {}
done
for d in ${DIRS[*]}; do
fd -uu -t d "$d" -x rm -r {}
done