2013-05-01 08:48:03 +00:00
|
|
|
# Generate en_US.UTF-8 locale.
|
|
|
|
#
|
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
|
|
|
LOCALE_ARCHIVEDIR=usr/lib/locale
|
|
|
|
LOCALE_ARCHIVE=${LOCALE_ARCHIVEDIR}/locale-archive
|
|
|
|
|
|
|
|
[ -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 ..."
|
2013-05-01 09:11:29 +00:00
|
|
|
localedef --prefix=. -c -f UTF-8 -i en_US en_US.UTF-8
|
2013-05-01 08:48:03 +00:00
|
|
|
;;
|
|
|
|
esac
|