Debian Codegraph @

texmf-dist/source/bibtex/bibtools/cleantex

raw
1 #!/bin/csh
2 #
3 # cleantex - clean up files related to Latex processing
4 #
5 # usage - cleantex [base]...
6 # default is \*, ie, to remove all latex extraneous files.
7 # Otherwise, those beginning with 'base.' are removed.
8 #
9 # No csh -f flag so that we get safe-rm instead of rm, where appropriate.
10
11 set extensions="{dvi,aux,log,toc,lof,bbl,blg,lot,inx}"
12
13 if ($#argv == 0) then
14 rm -f *~ *.$extensions
15 else
16 foreach i ($*)
17 rm -f $i.tex~ $i.$extensions
18 end
19 endif