Changeset 26 for SH_SHM/trunk/setup


Ignore:
Timestamp:
10/30/2008 10:29:39 PM (14 years ago)
Author:
marcus
Message:

r11 | svn | 2008-01-16 21:38:42 +0100 (Mi, 16 Jan 2008) | 1 line

installation script sets userroot relative to /home/klaus

File:
1 edited

Legend:

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

    r16 r26  
    3131        echo "         Note that the parameter must be the absolute path to the" 
    3232        echo "         installation directory" 
    33         exit 
    34 endif 
    35  
    36 # get parameters 
    37 set dstpath=$1 
    38 set srcpath=$2 
    39 if  ("$srcpath" == "")  set srcpath=$PWD 
     33        echo "" 
     34        echo -n "Do you want run run the installation now ? [y/n] " 
     35        set reply="$<" 
     36        if  ("$reply" == "y" || "$reply" == "Y")  then 
     37                set res=`which wget` 
     38                if  (! -e $res)  then 
     39                        echo "need 'wget' to continue.  Please install" 
     40                        exit 
     41                endif 
     42                echo -n "Where should SH/SHM be installed? Enter full pathname: " 
     43                set dstpath="$<" 
     44                if  (! -d $dstpath)  mkdir $dstpath 
     45                if  (! -w $dstpath)  then 
     46                        echo "Cannot write to $dstpath.  Abort." 
     47                        exit 
     48                endif 
     49                set srcpath=$HOME/shpackage 
     50                if  (-d $srcpath)  then 
     51                        echo "SH package directory $srcpath already exists." 
     52                        echo "Please rename or delete it and restart the installation program." 
     53                        exit 
     54                endif 
     55                echo -n "Create SH package directory $srcpath ? [y/n] " 
     56                set reply="$<" 
     57                if  ("$reply" == "y" || "$reply" == "Y")  then 
     58                        mkdir $srcpath 
     59                else 
     60                        exit 
     61                endif 
     62                echo "download SH/SHM package" 
     63                (cd $srcpath; wget ftp://ftp.szgrf.bgr.de/pub/software/SH-SHM.tar.gz) 
     64                echo "download FK package" 
     65                (cd $srcpath; wget ftp://ftp.szgrf.bgr.de/pub/software/fk-$ext.tar.gz) 
     66                echo "download LocSAT package" 
     67                (cd $srcpath; wget ftp://ftp.szgrf.bgr.de/pub/software/locsat-$ext.tar.gz) 
     68        else 
     69                exit 
     70        endif 
     71 
     72else 
     73 
     74        # get parameters 
     75        set dstpath=$1 
     76        set srcpath=$2 
     77        if  ("$srcpath" == "")  set srcpath=$PWD 
     78 
     79endif 
    4080 
    4181# check parameters 
     
    84124set compile_locsat="no" 
    85125set displ_res="undef" 
    86 set userroot=$HOME/shfiles 
     126set userroot='$HOME/shfiles' 
    87127if  ("`uname`" == "Linux")  then 
    88128        set linux_colors="yes" 
     
    130170        echo "(i)  Start Installation" 
    131171        echo "(q)  Quit Installation" 
     172        echo "" 
     173        echo "if all settings are ok, enter 'i'" 
    132174        echo "" 
    133175        echo -n "cmd: " 
Note: See TracChangeset for help on using the changeset viewer.