Add hook for locales update after glibc update

This commit is contained in:
Your Name 2016-10-04 21:28:25 +02:00
parent d97a6bb6e1
commit 420df2a7a7

View File

@ -0,0 +1,11 @@
#!/bin/bash
if [[ ${CATEGORY}/${PN} == "sys-libs/glibc" ]] ; then
einfo "Updating locales"
for _mylang in $(locale -a) ; do
if [[ ${_mylang} =~ "utf8" ]] ; then
edo localedef -i ${_mylang%.*} -f UTF-8 ${_mylang%.*}.UTF-8
fi
done
fi