Changeset 20083


Ignore:
Timestamp:
2009-07-27T10:55:30+12:00 (12 years ago)
Author:
oranfry
Message:

sped up this script

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.