[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
This commit is contained in:
parent
725c836365
commit
08b9a214f6
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ tibetan-lexicon-layout
|
||||
/ignored-folder/
|
||||
*.epub
|
||||
/content/ignored-folder/*
|
||||
*.bbl
|
||||
|
12
clean
Executable file
12
clean
Executable file
@ -0,0 +1,12 @@
|
||||
#!/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
|
10
clean.fish
10
clean.fish
@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env fish
|
||||
set delfname "*.pdf" "*.tex" "*.aux" "*.log" "*.toc" "*.out" "*.html" "*.lol" "*.lot" "*.epub"
|
||||
set deldname "auto" "_minted*" "svg-inkscape"
|
||||
for f in $delfname
|
||||
find -type f -name $f -delete
|
||||
end
|
||||
|
||||
for d in $deldname
|
||||
find -type d -name $d -exec rm -r {} +
|
||||
end
|
Reference in New Issue
Block a user