Changeset 224 for nutchez-0.2/src/shell/install
- Timestamp:
- Jun 25, 2010, 2:24:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/shell/install
r220 r224 4 4 # 變數宣告 5 5 6 Work_Path="./" 7 Work_Path_J=0 6 Work_Path=`dirname "$0"` 8 7 9 # Work Path setup 10 echo $0 | grep '/' || Work_Path_J=1 11 if [ "$Work_Path_J" == "0" ]; then 12 Work_Path=$(echo $0 | sed 's/install//') 13 fi 14 15 # Source functions 16 if [ -f $Work_Path/install_func.sh ];then 17 source $Work_Path/install_func.sh; 8 if [ -f $Work_Path/install_func.sh ];then 9 Work_Path=`cd "$Work_Path"; pwd` 18 10 elif [ -f $Work_Path/bin/install_func.sh ];then 19 source $Work_Path/bin/install_func.sh;11 Work_Path=`cd "$Work_Path/bin"; pwd`; 20 12 else 21 13 echo "Import install-function-library error !!! "; … … 23 15 fi 24 16 25 if [ -f $Work_Path/lang_linl ];then 17 #Work_Path=./ 18 #Work_Path_J=0 19 # Work Path setup 20 #echo $0 | grep '/' || Work_Path_J=1 21 #if [ "$Work_Path_J" == "0" ]; then 22 # Work_Path=$(echo $0 | sed 's/install//') 23 #fi 24 25 # Source functions 26 source $Work_Path/install_func.sh; 26 27 source $Work_Path/lang_link; 27 elif [ -f $Work_Path/bin/lang_link ];then28 source $Work_Path/bin/lang_link;29 else30 echo "Import Language-File error !!! ";31 fi32 28 ### real code ##### 33 29 … … 76 72 77 73 # 系統路徑鍊結 78 ln -sf /home/nutchuser/nutchez/system/nutchez /usr/local/ sbin/nutchez74 ln -sf /home/nutchuser/nutchez/system/nutchez /usr/local/bin/nutchez 79 75 80 76 make_client_install
Note: See TracChangeset
for help on using the changeset viewer.