aboutsummaryrefslogtreecommitdiff
path: root/scripts/corpus-validate.sh
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 20:43:54 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 20:43:54 +0200
commitee5f1e21f306d93b82d657917c92cc379c1df285 (patch)
tree3fa9eb746e08831e790ed0b5efdc2e7ed56d5500 /scripts/corpus-validate.sh
parent588d9fb64e023d08b3e6105b69c08d3f9ddf6083 (diff)
downloadlectio-ee5f1e21f306d93b82d657917c92cc379c1df285.tar.gz
lectio-ee5f1e21f306d93b82d657917c92cc379c1df285.zip
build: corpus-validate script + add-corpus/check-corpora make targets
Diffstat (limited to 'scripts/corpus-validate.sh')
-rwxr-xr-xscripts/corpus-validate.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/corpus-validate.sh b/scripts/corpus-validate.sh
new file mode 100755
index 0000000..ba46812
--- /dev/null
+++ b/scripts/corpus-validate.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Validate a bible corpus by code or by .tsv path (see lectio --corpus-check).
+# Usage: scripts/corpus-validate.sh <code|path-to-tsv>
+set -e
+[ -n "$1" ] || { echo "usage: $0 <code|path.tsv>" >&2; exit 2; }
+exec go run ./cmd/lectio --corpus-check "$1"