1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/japanese/typist/scripts/configure
Masafumi Max NAKANE 8b071371d6 New port, typist:
Typing lessons (Japanese version)
PR:		3930
Submitted by:	Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
1997-06-24 05:29:03 +00:00

26 lines
659 B
Bash

#!/bin/sh
# typist configuration shell script
# usage: /bin/sh configure
if [ X"${BATCH}" != X"yes" ] ; then
/usr/bin/dialog --title "typist port configuration" --radiolist \
"Is a type of your keyboard?" -1 -1 2 \
"106" "Japanese 106 keymap" ON \
"101" "101 keymap" OFF 2>/tmp/typist.ports.selection
if [ X`cat /tmp/typist.ports.selection` = "X101" ]
then
echo '101 keymap'
cp ${WRKSRC}/Makefile ${WRKSRC}/Makefile.tmp
sed -e 's/-DKEYTYPE=\\"j\\"/-DKEYTYPE=\\"e\\"/g' \
${WRKSRC}/Makefile.tmp > ${WRKSRC}/Makefile
else
echo 'Japanese 106 keymap'
fi
rm -f /tmp/typist.ports.selection
else
echo 'Japanese 106 keymap (default) is selected'
fi