From eabf1f6d74dac497ce31e3e2f441cfa25e9f74f2 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sat, 6 Jun 2026 12:02:41 -0400 Subject: Initial implementation (only a few years later!) This is pure Claude. I'd written out the plan for this suite of scripts eons ago, but never found the time to actual do it. Remembered it this morning, pointed Claude at the README, and had something that appears to work in minutes. caveat emptor: the design is mine, but the code is purely LLM generated at this point. --- bib-util | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 bib-util (limited to 'bib-util') diff --git a/bib-util b/bib-util new file mode 100755 index 0000000..e807b03 --- /dev/null +++ b/bib-util @@ -0,0 +1,28 @@ +#!/bin/sh +# bib-util - wrapper dispatching to the individual bibutils scripts +# +# usage: bib-util command [args ...] + +usage() { + printf 'usage: bib-util command [args ...]\n' >&2 + printf 'commands: add check convert extract fetch gen key ls\n' >&2 + exit 2 +} + +[ $# -ge 1 ] || usage +cmd=$1 +shift + +dir=$(dirname "$0") +case $cmd in + add|check|convert|extract|fetch|gen|key|ls) + exec "$dir/bib-$cmd" "$@" + ;; + help|-h|--help) + usage + ;; + *) + printf 'bib-util: unknown command: %s\n' "$cmd" >&2 + usage + ;; +esac -- cgit v1.2.3