17 lines
486 B
Plaintext
17 lines
486 B
Plaintext
|
# Generate en_US.UTF-8 locale.
|
||
|
#
|
||
|
case "${ACTION}" in
|
||
|
post)
|
||
|
LOCALE_ARCHIVEDIR=usr/lib/locale
|
||
|
LOCALE_ARCHIVE=${LOCALE_ARCHIVEDIR}/locale-archive
|
||
|
LOCALE_ALIAS=usr/share/locale/locale.alias
|
||
|
|
||
|
[ -n "$POSIXLY_CORRECT" ] && unset POSIXLY_CORRECT
|
||
|
[ -f $LOCALE_ARCHIVE ] && rm -f $LOCALE_ARCHIVE
|
||
|
[ ! -d $LOCALE_ARCHIVEDIR ] && mkdir -p $LOCALE_ARCHIVEDIR
|
||
|
|
||
|
echo "Generating GNU libc locale: en_US.UTF-8 ..."
|
||
|
localedef --prefix=. -c -f UTF-8 -i en_US -A $LOCALE_ALIAS en_US.UTF-8
|
||
|
;;
|
||
|
esac
|