1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/japanese/hns/files/hns-setup.sh
Steve Price 8093fcc11c Adding ja-hns version 2.00pl3
Hyper NIKKI System, a CGI system for Electric Diary Interchange

PR:		14855
Submitted by:	HOTARU-YA <hotaru@tail.net>
1999-12-27 01:24:37 +00:00

17 lines
339 B
Bash

#!/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