Debian Codegraph @

README

raw
1 "lintex" is a C program that removes auxilliary (La)TeX files that are
2 usually not needed after a (La)TeX run (log, aux, dvi, ... files);
3 they are however actually removed only if their modification time is
4 more recent than the one of the related TeX source. The backup files
5 usually created by many editors are also removed.
6
7 To remove or not remove additional extensions, lintex can parse the
8 configuration file $HOME/.lintexrc . See the included example and the
9 manpage for more details
10
11 Here follows an example run:
12
13 ryan@nu $ lintex -h
14 lintex version 1.13 (2012-09-03)
15 Usage:
16 lintex [OPTIONS] [DIR [DIR ...]]
17 Purpose:
18 Removes unneeded TeX auxiliary files and editor backup files from the
19 given directories (default: the current directory); the TeX files are
20 actually removed only if their modification time is more recent than
21 the one of the related TeX source and if they aren't readonly.
22 Please see the manpage for a list of extensions that get removed.
23 Options:
24 -i : asks the user before removing any file;
25 -r : scans recursively the subdirectories of the given
26 directories;
27 -b ext : "ext" is the trailing string identifying editor backup files
28 (defaults to "~"). -b "" avoids any cleanup of special
29 files;
30 -p : pretend, show what files would be removed but don't actually
31 remove them;
32 -k : keeps final document (.pdf, .ps, .dvi, etc.);
33 -o : permit removal of files older than their sources;
34 -q : quiet, only print error messages;
35 -v : verbose, prints which files were removed and which weren't;
36 -d : debug output, prints the answers to all of life's questions.
37 ryan@nu $ ls -lR
38 .:
39 total 4
40 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 bar.aux
41 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 bar.dvi
42 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 bar.log
43 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 bar.pdf
44 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 bar.ps
45 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 bar.tex
46 drwxr-xr-x 2 ryan ryan 4096 Sep 3 18:26 dir1/
47 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.aux
48 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.dvi
49 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.log
50 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.pdf
51 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.ps
52 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:28 foo.tex
53
54 ./dir1:
55 total 0
56 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 baz.aux
57 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 baz.dvi
58 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 baz.log
59 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 baz.pdf
60 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 baz.ps
61 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 baz.tex
62 ryan@nu $ lintex -r README .
63 lintex: "README" cannot be opened (or is not a directory)
64 ./bar.aux has been removed
65 ./bar.dvi has been removed
66 ./bar.log has been removed
67 ./bar.pdf has been removed
68 ./bar.ps has been removed
69 ./dir1/baz.aux has been removed
70 ./dir1/baz.dvi has been removed
71 ./dir1/baz.log has been removed
72 ./dir1/baz.pdf has been removed
73 ./dir1/baz.ps has been removed
74 ryan@nu $ ls -lR
75 .:
76 total 4
77 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 bar.tex
78 drwxr-xr-x 2 ryan ryan 4096 Sep 3 18:26 dir1/
79 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.aux
80 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.dvi
81 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.log
82 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.pdf
83 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 foo.ps
84 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:28 foo.tex
85 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 README
86
87 ./dir1:
88 total 0
89 -rw-r--r-- 1 ryan ryan 0 Sep 3 18:26 baz.tex