Debian Codegraph @

texmf-dist/doc/latex/multibib/bibtexall

raw
1 #!/bin/bash
2 #
3 # Evoke bibtex for each .aux file in the present directory.
4 #
5 # Usage:
6 # Change to the directory where you want to bibtex all .aux files which
7 # have a citation command and type
8 #
9 # bibtexall
10 #
11 # Thorsten Hansen, 2003-03-24 (first entry)
12 # 2005-10-26 do not evoke bibtex on .aux files w/o \citation's
13 # 2008-11-06 no message for files w/o citations
14 for file in *.aux ; do
15 if grep -c -q '\\citation' $file; then
16 echo "process $file"
17 bibtex `basename $file .aux`
18 # else
19 # echo "ignore file $file which has no \citation command"
20 fi
21 done