blob: 2c4ff348b4ed6a5bc940ec10ba529451cffe5852 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Copyright (C) 2010 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.
# Get rid of extra locale stuff (#9982)
. $OOB__shlib
langs=$(read_config global langs)
[ -z "$langs" ] && exit 0
# change from format "a,b,c" to format "a|b|c"
langs=${langs//,/|}
echo "localedef --list-archive | grep -v -i -E '$langs' | xargs localedef --delete-from-archive"
echo "mv /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl"
echo "/usr/sbin/build-locale-archive"
|