summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/multibib/bibtexall
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/multibib/bibtexall')
-rwxr-xr-xMaster/texmf-dist/doc/latex/multibib/bibtexall18
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/multibib/bibtexall b/Master/texmf-dist/doc/latex/multibib/bibtexall
index 6a0e58ec474..3b2849486aa 100755
--- a/Master/texmf-dist/doc/latex/multibib/bibtexall
+++ b/Master/texmf-dist/doc/latex/multibib/bibtexall
@@ -2,8 +2,20 @@
#
# Evoke bibtex for each .aux file in the present directory.
#
-# Thorsten Hansen, 2003-03-24
-
+# 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
- bibtex `basename $file .aux`
+ 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