void-packages/srcpkgs/chroot-glibc/INSTALL

16 lines
424 B
Text
Raw Normal View History

# 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 ..."
localedef --prefix=. -c -f UTF-8 -i en_US en_US.UTF-8
;;
esac