aboutsummaryrefslogtreecommitdiffstats
path: root/bib-key
blob: ff3c3634d20db2a74f00077ee057603f8fb0ef66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# bib-key - read bibtex entries and emit them with generated keys
#
# usage: bib-key [file ...]   (stdin if no file given)

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-key.awk" "$@"