From 59393410a693a3776f26f2def702d5e8f4ac6c99 Mon Sep 17 00:00:00 2001 From: David King Date: Tue, 5 Apr 2016 08:39:25 +0200 Subject: Initial commit --- treecompose-post.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 treecompose-post.sh (limited to 'treecompose-post.sh') 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 -- cgit