diff options
Diffstat (limited to 'treecompose-post.sh')
-rwxr-xr-x | treecompose-post.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/treecompose-post.sh b/treecompose-post.sh new file mode 100755 index 0000000..73b6573 --- /dev/null +++ b/treecompose-post.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -e + +# See: https://bugzilla.redhat.com/show_bug.cgi?id=1051816 +KEEPLANG=en_US +find /usr/share/locale -mindepth 1 -maxdepth 1 -type d -not -name "${KEEPLANG}" -exec rm -rf {} + +localedef --list-archive | grep -a -v ^"${KEEPLANG}" | xargs localedef --delete-from-archive +mv -f /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl +build-locale-archive |