blob: 062e157f6fb5b6382d107363dc32688d796ad5d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
# bib-check - lint a bibtex database
#
# usage: bib-check [file ...] (stdin if no file given)
#
# Reports missing required fields, duplicate keys, duplicate titles and
# empty field values. Exits nonzero if any problem was found.
if [ -n "$BIBUTILS_LIB" ]; then
LIB=$BIBUTILS_LIB
elif [ -d "$(dirname "$0")/lib" ]; then
LIB=$(dirname "$0")/lib
else
LIB=/usr/local/share/bibutils
fi
exec awk -f "$LIB/bib-parse.awk" -f "$LIB/bib-canon.awk" \
-f "$LIB/bib-check.awk" "$@"
|