blob: 6edd26365702176d790b476629c00f70a806dc32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
post_install() {
if [[ -f /usr/share/locale/zh_CN/LC_MESSAGES/gcc.mo ]]; then
install -Dm644 /usr/share/locale/zh_CN/LC_MESSAGES/gcc.mo{,.bak}
fi
install -Dm644 /usr/share/locale/zh_CN/LC_MESSAGES/gcc{-kawaii,}.mo
echo -e "\e[34m::\e[0m Please set \"LANG=zh_CN.UTF-8\" in /etc/locale.conf"
echo -e "请在 /etc/locale.conf 里设置 LANG=zh_CN.UTF-8"
}
post_upgrade() {
install -Dm644 /usr/share/locale/zh_CN/LC_MESSAGES/gcc{-kawaii,}.mo
}
pre_remove() {
install -Dm644 /usr/share/locale/zh_CN/LC_MESSAGES/gcc.mo{.bak,}
}
|