]> git.hungrycats.org Git - bees/commit
usage: convert .txt+generator to a plain .cc raw-string literal
authorZygo Blaxell <bees@furryterror.org>
Sun, 26 Apr 2026 20:28:42 +0000 (16:28 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sat, 5 Sep 2026 04:03:58 +0000 (00:03 -0400)
commitcf3d4e5f97bf1415e876befbe39cb6ad638ab284
tree2a2eea358f35e7d54f2d00618e2efe44b7c3c237
parent380390f5639379c4a04f80478dfac9978e8bc259
usage: convert .txt+generator to a plain .cc raw-string literal

The previous approach generated bees-usage.c from bees-usage.txt via a
make rule using sed.  That added a generated C file to the build, which
did not survive 'git clean' without first re-running make.  It also
made the usage text invisible to grep and git log -p without escaping.

Replace bees-usage.txt + the make generator rule with a plain .cc file
containing a single raw-string literal assigned to BEES_USAGE.  The
file follows the same pattern as bees-config-v1.cc and compiles via the
existing %.cc pattern rule in src/Makefile without special treatment.

No behaviour change: the string stored in BEES_USAGE is identical to
the previous generated output.  The --help output is byte-identical.

Assisted-by: Claude-Code:claude-sonnet-4-6
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/Makefile
src/bees-usage.cc [new file with mode: 0644]
src/bees-usage.txt [deleted file]