Changeset 194 for nutchez-0.2/src
- Timestamp:
- Jun 15, 2010, 4:10:36 PM (14 years ago)
- Location:
- nutchez-0.2/src/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/client_install
r192 r194 9 9 # 正式版之後,記的將不必要 read 拿掉 (trace 用的 read) 10 10 11 # 設定 functions12 . ./client_install_func.sh13 14 11 # 需要 master_install 設定的參數區 15 12 # Master IP here … … 21 18 Linux_Version=""; 22 19 Nutchuser_Passwd="xxxxxxxxxx"; 20 Work_Path=$(echo $0 | sed 's/client_install//') 21 22 # Source functions 23 source $Work_Path/client_install_func.sh 23 24 24 25 # Language Choice -
nutchez-0.2/src/test/client_install_func.sh
r193 r194 27 27 28 28 # Default: source english 29 . lang_en_US_client_install29 . $Work_Path/lang_en_US_client_install 30 30 # if locale is zh then source chinese 31 echo $lang | grep 'zh' >> /dev/null && source lang_zh_TW_client_install31 echo $lang | grep 'zh' >> /dev/null && source $Work_Path/lang_zh_TW_client_install 32 32 33 33 # Ask language … … 36 36 37 37 if [ $langChoice == "2" ]; then 38 source lang_zh_TW_client_install38 source $Work_Path/lang_zh_TW_client_install 39 39 else 40 source lang_en_US_client_install40 source $Work_Path/lang_en_US_client_install 41 41 fi 42 42 } -
nutchez-0.2/src/test/nutchez
r186 r194 18 18 Tomcat_HOME="/opt/nutchez/tomcat" 19 19 NutchEZ_HOME="/home/nutchuser/nutchez" 20 Work_Path=$(echo $0 | sed 's/client_install//') 20 21 21 22 # [Env Declaration] # 22 . lang_en_US_nutchez23 . $Work_Path/lang_en_US_nutchez 23 24 24 25 # [Functions Declaration] # … … 28 29 29 30 # if lang=zh then source lang_zh_TW_nutchez 30 echo $lang | grep 'zh' && source lang_zh_TW_nutchez31 echo $lang | grep 'zh' && source $Work_Path/lang_zh_TW_nutchez 31 32 } 32 33 … … 332 333 exit 333 334 elif [ "$(cat $langSwitch)" == "en_US" ]; then 334 source lang_en_US_nutchez335 source $Work_Path/lang_en_US_nutchez 335 336 main_menu 336 337 menu_choose 337 338 elif [ "$(cat $langSwitch)" == "zh_TW" ]; then 338 source lang_zh_TW_nutchez339 source $Work_Path/lang_zh_TW_nutchez 339 340 main_menu 340 341 menu_choose
Note: See TracChangeset
for help on using the changeset viewer.