Changeset 20083

Show
Ignore:
Timestamp:
27.07.2009 10:55:30 (10 years ago)
Author:
oranfry
Message:

sped up this script

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/gs3-setup.sh

    r20078 r20083  
    111111      echo "  - Greenstone 'Ant' package missing - falling back to system Ant" 
    112112    else 
    113       echo "  NOTE: Greenstone 'Ant' package missing - please install Ant yourself" 
     113      echo "  - NOTE: Greenstone 'Ant' package missing - please install Ant yourself" 
    114114    fi 
     115    echo "    (Greenstone requires Ant 1.7.1 or greater)" 
    115116  fi 
    116117 
     
    152153function addtopath() { 
    153154  eval "PV=\$$1" 
    154   if [ `isinpath "$PV" "$2"` == "false" ]; then 
    155     #echo "$1 += $2" 
    156     if [ "$PV" == "" ]; then 
    157       cmd="$1=\"$2\"" 
    158     else 
    159       cmd="$1=\"$2:\$$1\"" 
    160     fi 
    161     eval $cmd 
    162     eval "export $1" 
     155  #echo "$1 += $2" 
     156  if [ "$PV" == "" ]; then 
     157    cmd="$1=\"$2\"" 
     158  else 
     159    cmd="$1=\"$2:\$$1\"" 
    163160  fi 
     161  eval $cmd 
     162  eval "export $1" 
    164163} 
    165164