locale: Check for the necessary files to generate more locales
Compare changes
- Simon McVittie authored
This tool is similar to the Debian-specific locale-gen script shipped with glibc, but generates the locales needed for the Steam Runtime instead of a set of locales configured system-wide, and writes to the current working directory instead of a system path. See the included man page for details. This is pushing the boundaries of what I'm comfortable releasing as a shell script, due to shell scripts' error handling behaviour and other sharp edges; but I've written it as shell script anyway because this way it doesn't matter so much which architecture(s) is/are supported, and whether it is run in a container or against an LD_LIBRARY_PATH runtime. The (non-multiarch-prefixed) steam-runtime-check-locale helper is useful but not strictly required. If it is not executable, the failure mode is that we generate more locales than we would otherwise have done, and spend more time on doing so - that isn't terrible. Signed-off-by:
Simon McVittie <smcv@collabora.com>