Changeset 15014

Show
Ignore:
Timestamp:
27.02.2008 16:36:56 (11 years ago)
Author:
davidb
Message:

Adjustment to fli.sh start-up script so it can distinguishes between Fedora v2.x or Fedora v3.x

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/fli.sh

    r14979 r15014  
    2121 
    2222# Test to see if FEDORA environment variables have been set up 
    23 if [ "x$FEDORA_HOME" = "x" ]; then 
    24     echo "Error: Cannot find Fedora home.  Have set the environment variable 'FEDORA_HOME' ?" 
    25     exit 
    26 fi 
    27 if [ ! -d "$FEDORA_HOME" ]; then 
    28     echo "Error: Cannot find Fedora home: Not such directory $FEDORA_HOME" 
    29     exit 
     23if [ "x$FEDORA2_HOME" != "x" ]; then 
     24  if [ -d "$FEDORA2_HOME" ]; then 
     25    export FEDORA_HOME=$FEDORA2_HOME 
     26    ./gli.sh -fedora_home "$FEDORA2_HOME" $* 
     27  else  
     28      echo "Error: Cannot find Fedora-2 home: Not such directory $FEDORA2_HOME" 
     29      exit 
     30  fi 
     31else 
     32  # Test to see if FEDORA environment variables have been set up 
     33  if [ "x$FEDORA3_HOME" = "x" ]; then 
     34      echo "Error: Cannot find Fedora-3 home.  Have set the environment variable 'FEDORA3_HOME' ?" 
     35      exit 
     36  fi 
     37  if [ ! -d "$FEDORA3_HOME" ]; then 
     38      echo "Error: Cannot find Fedora-3 home: Not such directory $FEDORA3_HOME" 
     39      exit 
     40  fi 
     41 
     42    export FEDORA_HOME=$FEDORA3_HOME 
     43    ./gli.sh -fedora_home "$FEDORA3_HOME" $* 
    3044fi 
    3145 
    32 ./gli.sh -fedora_home "$FEDORA_HOME" $* 
     46 
     47 
     48 
     49