Add the collation partition to the build

Includes a small linux-only bash script to generate locale partitions
This commit is contained in:
jacqueline
2024-05-03 12:37:23 +10:00
parent a231fd1c8a
commit 964da15a0b
4 changed files with 46 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
set -eu
if [ -z "${2:-}" ]; then
name="Generic"
locale="iso14651_t1"
else
name="$1"
locale="$2"
fi
working_dir=$(mktemp -d)
echo -n "$name" | dd iflag=fullblock bs=8 count=1 conv=sync of="$working_dir/name"
localedef -f UTF-8 -i "$locale" --no-archive "$working_dir" || true
cat "$working_dir/name" "$working_dir/LC_COLLATE" > "$name.LC_COLLATE"