Changeset 23111


Ignore:
Timestamp:
2010-10-12T13:33:31+13:00 (14 years ago)
Author:
sjm84
Message:

Swapping 2 sections of code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/cascade-make/trunk/lib/cascade-lib.bash

    r23104 r23111  
    1 
    2 if test $# -gt "0" ; then
    3   if test -z ${1##GEXT*} ; then
    4    
    5     ext=$1 ; shift
    6     reldir=$1 ; shift
    7 
    8     eval exthome=`echo \\$$ext`
    9     if test -z "$exthome" ; then
    10       echo "Environment variable $ext for Greenstone extension not set"
    11       echo "Sourcing $reldir/setup.bash"
    12       source $reldir/setup.bash
    13 
    14       eval exthome=`echo \\$$ext`
    15     fi
    16   fi
    17 fi
    18 
    191if test -z $GSDLOS ; then
    202  GSDLOS=`uname -s | tr '[A-Z]' '[a-z]'`
     
    3315fi
    3416
     17if test $# -gt "0" ; then
     18  if test -z ${1##GEXT*} ; then
     19   
     20    ext=$1 ; shift
     21    reldir=$1 ; shift
     22
     23    eval exthome=`echo \\$$ext`
     24    if test -z "$exthome" ; then
     25      echo "Environment variable $ext for Greenstone extension not set"
     26      echo "Sourcing $reldir/setup.bash"
     27      source $reldir/setup.bash
     28
     29      eval exthome=`echo \\$$ext`
     30    fi
     31  fi
     32fi
    3533
    3634run_untar()
Note: See TracChangeset for help on using the changeset viewer.