Ignore:
Timestamp:
03/10/2011 01:47:22 PM (12 years ago)
Author:
marcus
Message:

r182 | walther | 2011-03-10 13:46:51 +0100 (Do, 10 Mär 2011) | 1 line

minor changes in setup routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/setup/SHM-install.csh

    r340 r343  
    2525if  (! -w $dstpath)  then 
    2626        echo "$0 : cannot write to installation path $dstpath.  Abort." 
    27         exit 
     27        exit 1 
    2828endif 
    2929 
     
    7373        if  (! -e "$res")  then 
    7474                echo "Program $p not found in search path.  Please add." 
    75                 exit 
     75                exit 2 
    7676        endif 
    7777end 
     
    9595        set cmd="$<" 
    9696 
    97         if  ("$cmd" == "q")  exit 
     97        if  ("$cmd" == "q")  exit 99 
    9898        if  ("$cmd" == "r")  then 
    9999                if  ("$displ_res" == "xga")  then 
     
    156156else 
    157157        echo "$0 : sorry, this operating system is not supported" 
    158         exit 
     158        exit 3 
    159159endif 
    160160set locsatpath=$dstpath/sh/util/locsat 
     
    167167        if  ($plth > 25)  then 
    168168                echo "$0 : cannot find short locsat path.  Abort." 
    169                 exit 
     169                exit 4 
    170170        endif 
    171171endif 
     
    209209if  (! -e $origsetup)  then 
    210210        echo "Installation program error.  Sorry." 
    211         exit 
     211        exit  5 
    212212endif 
    213213set thissetup=$dstpath/sh/inputs/shm-config.txt 
    214 if  (-e $thissetup)  \mv $thissetup $dstpath/sh/inputs/shm-config.txt.yours 
     214if  (-e $thissetup)  then 
     215    \mv $thissetup $dstpath/sh/inputs/shm-config.txt.yours 
     216    echo "A backup of your shm-config.txt has been saved under:" 
     217    echo $dstpath/sh/inputs/shm-config.txt.yours 
     218endif 
    215219sed "s@##EDITOR##@$editor@" $origsetup > $thissetup 
    216220 
Note: See TracChangeset for help on using the changeset viewer.