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