pidgin/dictionaries
Clone
Summary
Browse
Changes
Graph
Apease the docker gods
draft
2022-02-14, Gary Kramlich
4bb8db6ccfd2
file is
Executable
Apease the docker gods
#!/bin/sh -e
LANGS
=
$(
find
/usr/share/hunspell
-type
f
-exec
basename
{}
\;
|
cut
-d.
-f1
|
sort
-u
|
xargs
echo
)
OUTPUT_DIR
=
"
${
CONVEY_WORKSPACE
}
/dicts"
OUTPUT_FILE
=
"
${
OUTPUT_DIR
}
/available.lst"
mkdir
-p
"
${
OUTPUT_DIR
}
"
echo
-n
>
"
${
OUTPUT_FILE
}
"
for
LANG
in
${
LANGS
}
;
do
python3
./mk-entry.py
"
${
LANG
}
"
>>
"
${
OUTPUT_FILE
}
"
zip
--junk-paths
"
${
OUTPUT_DIR
}
/
${
LANG
}
.zip"
/usr/share/hunspell/
"
${
LANG
}
"
.*
done