2013-05-01 10:48:03 +02: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 11:11:29 +02:00
|
|
|
localedef --prefix=. -c -f UTF-8 -i en_US en_US.UTF-8
|
2013-05-01 10:48:03 +02:00
|
|
|
;;
|
|
|
|
esac
|