summaryrefslogtreecommitdiffhomepage
path: root/pipeline/read.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pipeline/read.sh')
-rwxr-xr-xpipeline/read.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/pipeline/read.sh b/pipeline/read.sh
index ddbebe4..451f725 100755
--- a/pipeline/read.sh
+++ b/pipeline/read.sh
@@ -1,10 +1,8 @@
#!/usr/bin/env sh
-# Every reader and both libraries, over every document, into $OUT/read/.
+# The library and its reader, over every document, into $OUT/read/.
#
# What each produces:
#
-# read/ssp-{d,g}/<doc>.txt the .ssp readers' summary
-# read/db-{d,g}/<doc>.txt the .ocda.db readers' summary
# read/dump-{d,g}/<doc>.ssp the library's dump, loaded from the .ssp
# read/dump-{d,g}/<doc>.db the same, loaded from the .ocda.db
# read/read-{d,g}/<doc>.ssp ocda-read --tree, reading the .ssp
@@ -17,7 +15,7 @@ set -e
. "$(dirname "$0")/config.sh"
: "${ARTEFACTS:?set ARTEFACTS to a directory of .ssp and .ocda.db files}"
mkdir -p "$OUT/read"
-for d in ssp-d ssp-g db-d db-g dump-d dump-g read-d read-g; do mkdir -p "$OUT/read/$d"; done
+for d in dump-d dump-g read-d read-g; do mkdir -p "$OUT/read/$d"; done
list=$(find "$ARTEFACTS" -name '*.ssp' | sort)
[ -n "$LIMIT" ] && list=$(echo "$list" | head -n "$LIMIT")
@@ -27,13 +25,9 @@ for ssp in $list; do
stem=$(basename "$ssp" .ssp); lang=${stem##*.}; uid=${stem%.*}
db=$(find "$ARTEFACTS" -name "$uid.ocda.db" | head -1)
n=$((n+1))
- sh "$(dirname "$0")/one.sh" ssp-d "$ssp" > "$OUT/read/ssp-d/$stem.txt"
- sh "$(dirname "$0")/one.sh" ssp-g "$ssp" > "$OUT/read/ssp-g/$stem.txt"
sh "$(dirname "$0")/one.sh" dump-d "$ssp" > "$OUT/read/dump-d/$stem.ssp"
sh "$(dirname "$0")/one.sh" dump-g "$ssp" > "$OUT/read/dump-g/$stem.ssp"
[ -n "$db" ] || continue
- sh "$(dirname "$0")/one.sh" db-d "$db" > "$OUT/read/db-d/$stem.txt"
- sh "$(dirname "$0")/one.sh" db-g "$db" > "$OUT/read/db-g/$stem.txt"
sh "$(dirname "$0")/one.sh" dump-d "$db" "$lang" > "$OUT/read/dump-d/$stem.db"
sh "$(dirname "$0")/one.sh" dump-g "$db" "$lang" > "$OUT/read/dump-g/$stem.db"
# the four-way agreement, which is the library's whole claim