mirror of
https://github.com/pachli/pachli-android.git
synced 2024-12-12 09:09:27 +01:00
d7b504f31e
The existing language list is incomplete, sorted incorrectly and does not use the correct language names. Add a small tool that parses the resource directories that contain string translations, determines the correct language name and sort order, and updates the correct application resources so language lists are displayed correctly.
16 lines
407 B
Bash
16 lines
407 B
Bash
#!/usr/bin/env bash
|
|
# Run one of the tools.
|
|
# The first argument must be the name of the tool task (e.g. mklanguages).
|
|
# Any remaining arguments are forwarded to the tool's argv.
|
|
|
|
task=$1
|
|
shift 1
|
|
|
|
if [ -z "${task}" ] || [ ! -d "tools/${task}" ]
|
|
then
|
|
echo "Unknown tool: '${task}'"
|
|
exit 1
|
|
fi
|
|
|
|
./gradlew --quiet ":tools:${task}:installDist" && "./tools/${task}/build/install/${task}/bin/${task}" "$@"
|