install2: more locale cleanups
My gut feeling is that we're not going to see glib2's messages a lot within installer environment anyways. And there's a forgotten /usr/share/X11/locale/ too.
This commit is contained in:
parent
d871db1639
commit
3927ac2198
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# drop unused l10n/i18n data
|
# drop unused l10n/i18n data
|
||||||
|
|
||||||
|
# preparations
|
||||||
|
rpm -e --nodeps glib2-locales
|
||||||
|
|
||||||
# the fell swoop
|
# the fell swoop
|
||||||
find /usr/share/locale/ -type f \! -name 'alterator*' -delete
|
find /usr/share/locale/ -type f \! -name 'alterator*' -delete
|
||||||
rm -rf /usr/share/zoneinfo/{posix,right}/
|
rm -rf /usr/share/zoneinfo/{posix,right}/
|
||||||
@ -12,10 +15,10 @@ rm -f /usr/lib*/gconv/BIG5*
|
|||||||
rm -f /usr/lib*/gconv/EBCDIC*
|
rm -f /usr/lib*/gconv/EBCDIC*
|
||||||
|
|
||||||
# en_* variations
|
# en_* variations
|
||||||
rm -rf /usr/{lib,share}/locale/en_[^U]*
|
rm -rf /usr/{lib,share{,/X11}}/locale/en_[^U]*
|
||||||
|
|
||||||
# mods
|
# mods
|
||||||
rm -rf /usr/{lib,share}/locale/*@*
|
rm -rf /usr/{lib,share{,/X11}}/locale/*@*
|
||||||
|
|
||||||
# non-utf8 locales
|
# non-utf8 locales
|
||||||
find /usr/lib/locale -mindepth 1 -maxdepth 1 -type d \! -name '*.utf8' -print0 |
|
find /usr/lib/locale -mindepth 1 -maxdepth 1 -type d \! -name '*.utf8' -print0 |
|
||||||
|
Loading…
Reference in New Issue
Block a user