diff options
Diffstat (limited to 'japanese/FreeWnn-server/pkg-install')
-rw-r--r-- | japanese/FreeWnn-server/pkg-install | 50 |
1 files changed, 19 insertions, 31 deletions
diff --git a/japanese/FreeWnn-server/pkg-install b/japanese/FreeWnn-server/pkg-install index 612660afd0e0..57df408c734a 100644 --- a/japanese/FreeWnn-server/pkg-install +++ b/japanese/FreeWnn-server/pkg-install @@ -97,7 +97,7 @@ EOF POST-INSTALL) case $1 in - ja-Wnn-4.2) + ja-FreeWnn-*) sys_dirs="${PKG_PREFIX}/lib/wnn/ja_JP/dic/pubdic ${PKG_PREFIX}/lib/wnn/ja_JP/dic/wnncons ${PKG_PREFIX}/lib/wnn/ja_JP/dic/gerodic" usr_dirs=${PKG_PREFIX}/lib/wnn/ja_JP/dic/usr wnnserver=${PKG_PREFIX}/bin/Wnn4/jserver @@ -107,7 +107,7 @@ POST-INSTALL) wnn_socket=/tmp/jd_sockV4 wnn_lang=ja_JP ;; - zh-Wnn-4.2) + zh-FreeWnn-*) sys_dirs="${PKG_PREFIX}/lib/wnn/zh_CN/dic/sys ${PKG_PREFIX}/lib/wnn/zh_TW/dic/sys" usr_dirs="${PKG_PREFIX}/lib/wnn/zh_CN/dic/usr ${PKG_PREFIX}/lib/wnn/zh_TW/dic/usr" wnnserver=${PKG_PREFIX}/bin/cWnn4/cserver @@ -117,7 +117,7 @@ POST-INSTALL) wnn_socket=/tmp/cd_sockV4 wnn_lang=zh_CN ;; - ko-Wnn-4.2) + ko-FreeWnn-*) sys_dirs="${PKG_PREFIX}/lib/wnn/ko_KR/dic/sys" usr_dirs=${PKG_PREFIX}/lib/wnn/ko_KR/dic/usr wnnserver=${PKG_PREFIX}/bin/kWnn4/kserver @@ -145,41 +145,29 @@ POST-INSTALL) if [ ! -f ${startup_script} ]; then echo "Installing ${startup_script} startup file."; echo '#!/bin/sh' > ${startup_script}; - echo 'case $1 in' >> ${startup_script}; - echo 'start)' >> ${startup_script}; - echo " wnn=${wnnserver}" >> ${startup_script}; - echo ' if [ -x $wnn ]; then' >> ${startup_script}; - echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script}; - echo ' if [ $? = 255 ]; then' >> ${startup_script}; - echo " rm -f ${wnn_socket}" >> ${startup_script}; - echo " echo -n ' ${wnnname}'" >> ${startup_script}; - echo ' $wnn' >> ${startup_script}; - echo " fi" >> ${startup_script}; + echo "wnn=${wnnserver}" >> ${startup_script}; + echo 'if [ -x $wnn ]; then' >> ${startup_script}; + echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script}; + echo ' if [ $? = 255 ]; then' >> ${startup_script}; + echo " rm -f ${wnn_socket}" >> ${startup_script}; + echo " echo -n ' ${wnnname}'" >> ${startup_script}; + echo ' $wnn' >> ${startup_script}; echo " fi" >> ${startup_script}; + echo "fi" >> ${startup_script}; if [ $1 = zh-Wnn-4.2 ]; then wnnserver=${PKG_PREFIX}/bin/cWnn4/tserver wnn_lang=zh_TW wnn_socket=/tmp/td_sockV4 - echo " wnn=${wnnserver}" >> ${startup_script}; - echo ' if [ -x $wnn ]; then' >> ${startup_script}; - echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script}; - echo ' if [ $? = 255 ]; then' >> ${startup_script}; - echo " rm -f ${wnn_socket}" >> ${startup_script}; - echo " echo -n ' ${wnnname}'" >> ${startup_script}; - echo ' $wnn' >> ${startup_script}; - echo " fi" >> ${startup_script}; + echo "wnn=${wnnserver}" >> ${startup_script}; + echo 'if [ -x $wnn ]; then' >> ${startup_script}; + echo " ${wnnstat} -L ${wnn_lang} localhost > /dev/null 2>&1" >> ${startup_script}; + echo ' if [ $? = 255 ]; then' >> ${startup_script}; + echo " rm -f ${wnn_socket}" >> ${startup_script}; + echo " echo -n ' ${wnnname}'" >> ${startup_script}; + echo ' $wnn' >> ${startup_script}; echo " fi" >> ${startup_script}; + echo "fi" >> ${startup_script}; fi - echo ' ;;' >> ${startup_script}; - echo 'stop)' >> ${startup_script}; - echo ' killall $wnn' >> ${startup_script}; - echo " echo -n ' ${wnnname}'" >> ${startup_script}; - echo ' ;;' >> ${startup_script}; - echo '*)' >> ${startup_script}; - echo ' echo "Usage: `basename $0` {start|stop}" >&2' >> ${startup_script}; - echo ' ;;' >> ${startup_script}; - echo 'esac' >> ${startup_script}; - echo 'exit 0' >> ${startup_script}; chmod 755 ${startup_script}; chown bin.bin ${startup_script}; fi |