aboutsummaryrefslogtreecommitdiffstats
path: root/bib-extract
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2026-06-06 12:26:27 -0400
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2026-06-06 12:26:27 -0400
commitb56c273d8198ae6cee69bbc9fe5a6a61da4074e4 (patch)
treef75b89299fe2783354ba0ab7e3ace088fa60245a /bib-extract
parent4aec9800fca665713b0eba19f10af927b483332e (diff)
downloadbibutils-b56c273d8198ae6cee69bbc9fe5a6a61da4074e4.tar.gz
Code cleanup
Diffstat (limited to 'bib-extract')
-rwxr-xr-xbib-extract9
1 files changed, 2 insertions, 7 deletions
diff --git a/bib-extract b/bib-extract
index 52aa85b..297588a 100755
--- a/bib-extract
+++ b/bib-extract
@@ -50,11 +50,6 @@ keys=$(awk '
[ -n "$keys" ] || exit 0
-# \nocite{*} cites everything: emit the whole database
-case ",$keys," in
- *,\*,*) keys= invert=1 ;;
- *) invert=0 ;;
-esac
-
+# a key of "*" (from \nocite{*}) selects the whole database
exec awk -f "$LIB/bib-parse.awk" -f "$LIB/bib-canon.awk" \
- -f "$LIB/bib-select.awk" -v keys="$keys" -v invert="$invert" "$@"
+ -f "$LIB/bib-select.awk" -v keys="$keys" -v invert=0 "$@"