Changeset 194 for nutchez-0.2/src


Ignore:
Timestamp:
Jun 15, 2010, 4:10:36 PM (14 years ago)
Author:
rock
Message:

新增 Work_Path

Location:
nutchez-0.2/src/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/client_install

    r192 r194  
    99# 正式版之後,記的將不必要 read 拿掉 (trace 用的 read)
    1010
    11 # 設定 functions
    12 . ./client_install_func.sh
    13 
    1411# 需要 master_install 設定的參數區
    1512# Master IP here
     
    2118Linux_Version="";
    2219Nutchuser_Passwd="xxxxxxxxxx";
     20Work_Path=$(echo $0 | sed 's/client_install//')
     21
     22# Source functions
     23source $Work_Path/client_install_func.sh
    2324
    2425# Language Choice
  • nutchez-0.2/src/test/client_install_func.sh

    r193 r194  
    2727
    2828# Default: source english
    29 . lang_en_US_client_install
     29. $Work_Path/lang_en_US_client_install
    3030# if locale is zh then source chinese
    31 echo $lang | grep 'zh' >> /dev/null && source lang_zh_TW_client_install
     31echo $lang | grep 'zh' >> /dev/null && source $Work_Path/lang_zh_TW_client_install
    3232
    3333# Ask language
     
    3636
    3737if [ $langChoice == "2" ]; then
    38     source lang_zh_TW_client_install
     38    source $Work_Path/lang_zh_TW_client_install
    3939else
    40     source lang_en_US_client_install
     40    source $Work_Path/lang_en_US_client_install
    4141fi
    4242}
  • nutchez-0.2/src/test/nutchez

    r186 r194  
    1818Tomcat_HOME="/opt/nutchez/tomcat"
    1919NutchEZ_HOME="/home/nutchuser/nutchez"
     20Work_Path=$(echo $0 | sed 's/client_install//')
    2021
    2122# [Env Declaration] #
    22 . lang_en_US_nutchez
     23. $Work_Path/lang_en_US_nutchez
    2324
    2425# [Functions Declaration] #
     
    2829
    2930# if lang=zh then source lang_zh_TW_nutchez
    30 echo $lang | grep 'zh' && source lang_zh_TW_nutchez
     31echo $lang | grep 'zh' && source $Work_Path/lang_zh_TW_nutchez
    3132}
    3233
     
    332333    exit
    333334elif [ "$(cat $langSwitch)" == "en_US" ]; then
    334     source lang_en_US_nutchez
     335    source $Work_Path/lang_en_US_nutchez
    335336    main_menu
    336337    menu_choose
    337338elif [ "$(cat $langSwitch)" == "zh_TW" ]; then
    338     source lang_zh_TW_nutchez
     339    source $Work_Path/lang_zh_TW_nutchez
    339340    main_menu
    340341    menu_choose
Note: See TracChangeset for help on using the changeset viewer.