data: validate and repair Japanese dictionaries

This commit is contained in:
2026-08-12 15:34:00 +09:00
parent f0ba7fc5f6
commit d2fa51ceba
9 changed files with 324 additions and 39 deletions

View File

@@ -1,2 +1,20 @@
#!/bin/rc
git/clone https://github.com/skk-dev/dict skkdicts
#!/bin/sh
set -eu
repo=https://github.com/skk-dev/dict.git
dest=${1:-skkdicts}
revision=${2:-}
if [ "$#" -gt 2 ] || [ -z "$dest" ]; then
echo "usage: $0 [destination [revision]]" >&2
exit 2
fi
if [ -e "$dest" ]; then
echo "$0: destination already exists: $dest" >&2
exit 1
fi
git clone "$repo" "$dest"
if [ -n "$revision" ]; then
git -C "$dest" checkout --detach "$revision"
fi