summaryrefslogtreecommitdiff
path: root/japanese/hns/files/hns-setup.sh
blob: 7666a85f308b8b55072c8cf46be5ad48104b1030 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
YN=N
cd @PREFIX@/share/hns
( echo "$LANG" | /usr/bin/grep -q '^ja' ) && YN=Y
[ "$1" = "ja" ] && YN=Y
if [ "$YN" = "N" ]; then
    echo -n "Japanese message OK? [y/N]: "
    read YN
    [ -n "$YN" ] || YN=N
fi
[ "$1" = "en" ] && YN=N
if [ "$YN" = "Y" -o "$YN" = "y" ]; then
    exec ./hns-setup.ja
else
    exec ./hns-setup.en
fi