Changeset 26 for SH_SHM/trunk
- Timestamp:
- 10/30/2008 10:29:39 PM (14 years ago)
- Location:
- SH_SHM/trunk
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/setup/install.csh
r16 r26 31 31 echo " Note that the parameter must be the absolute path to the" 32 32 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 72 else 73 74 # get parameters 75 set dstpath=$1 76 set srcpath=$2 77 if ("$srcpath" == "") set srcpath=$PWD 78 79 endif 40 80 41 81 # check parameters … … 84 124 set compile_locsat="no" 85 125 set displ_res="undef" 86 set userroot= $HOME/shfiles126 set userroot='$HOME/shfiles' 87 127 if ("`uname`" == "Linux") then 88 128 set linux_colors="yes" … … 130 170 echo "(i) Start Installation" 131 171 echo "(q) Quit Installation" 172 echo "" 173 echo "if all settings are ok, enter 'i'" 132 174 echo "" 133 175 echo -n "cmd: "
Note: See TracChangeset
for help on using the changeset viewer.