Debian Codegraph @

install/unix/autoconfig

raw symbols SCIP
1 #! /bin/bashscip-shell filesystem . . `/bin/bash`.
2 # .COPYRIGHT: Copyright (c) 2002-2011 European Southern Observatory,
3 # all rights reserved
4 # .TYPE command
5 # .NAME autoinstall
6 # .LANGUAGE shell script
7 # .ENVIRONMENT Unix Systems. Executable under SHELL and C-SHELL
8 # .COMMENTS Automatic installation procedure of MIDAS
9 # Usage: autoconfig
10 #
11 # .REMARKS The external variable $MIDASHOME and $MIDVERS must be set
12 #
13 # .AUTHOR Carlos Guirao
14 # .VERSION
15 # 021028 implementation
16 # 111206 last modif
17 #
18 # Checks echo command which option to use to get NO NEW LINE
19 #
20 echo=echo
21 if [scip-shell system . . `[`. "`echoscip-shell system . . echo. -n `" = "-n" ] ; then
22 SV_NONL="\c"
23 else
24 echo="echo -n"
25 fi
26
27 clearscip-shell system . . clear.
28
29 cd `echoscip-shell system . . echo. $0 | sedscip-shell system . . sed. -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'`
30 MID_INSTALL=`pwdscip-shell system . . pwd.`
31 VERSDIR=`echoscip-shell system . . echo. $MID_INSTALL | sedscip-shell system . . sed. 's/\/install\/unix$//'`
32 MIDVERS=`echoscip-shell system . . echo. $VERSDIR | sedscip-shell system . . sed. -e 's/^.*\///'`
33 MIDASHOME=`echoscip-shell system . . echo. $VERSDIR | sedscip-shell system . . sed. -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'`
34
35 MID_INSTALL=$MIDASHOME/$MIDVERS/install/unix
36 MID_HOME=$MIDASHOME/$MIDVERS
37
38 export MIDASHOME MIDVERS
39
40 #
41 # CG: The DISPLAY variable is not needed anymore. I'm using 'ascii_bin no'
42 #if [ -z "$DISPLAY" ]; then
43 # echo "DISPLAY environment variable not set - exiting"
44 # exit 1
45 #fi
46
47 #
48 # START
49 #
50 echoscip-shell system . . echo. "**********************************************************************"
51 echoscip-shell system . . echo. "********** MIDAS AUTO INSTALLATION/CONFIGURATION SCRIPT **************"
52 echoscip-shell system . . echo. "**********************************************************************"
53 echoscip-shell system . . echo. "********** MIDASHOME: $MIDASHOME"
54 echoscip-shell system . . echo. "********** MIDVERS: $MIDVERS"
55 echoscip-shell system . . echo. ""
56
57 $echo "Do you want to continue [yn]? (y): " $SV_NONL
58 read answ
59 if [scip-shell system . . `[`. -z "$answ" ]; then
60 answ="y"
61 fi
62 if [scip-shell system . . `[`. "$answ" = "n" -o "$answ" = "N" ]; then
63 exit 1
64 fi
65
66 /bin/bashscip-shell filesystem . . `/bin/bash`. $MID_INSTALL/select all
67 /bin/bashscip-shell filesystem . . `/bin/bash`. $MID_INSTALL/preinstall -a
68 /bin/bashscip-shell filesystem . . `/bin/bash`. $MID_INSTALL/install1 -a
69 /bin/bashscip-shell filesystem . . `/bin/bash`. $MID_INSTALL/setup -a
70 /bin/bashscip-shell filesystem . . `/bin/bash`. ../../system/unix/inmidas -j "@ compile.all"
71 /bin/bashscip-shell filesystem . . `/bin/bash`. ../../system/unix/inmidas -j "@ ascii_bin no ; bye"
72
73 echoscip-shell system . . echo. " "
74 echoscip-shell system . . echo. "**********************************************************************"
75 echoscip-shell system . . echo. "Midas installation successfully terminated."
76 echoscip-shell system . . echo. "on: "`datescip-shell system . . date.`
77 echoscip-shell system . . echo. " "
78 echoscip-shell system . . echo. "Enter:"
79 echoscip-shell system . . echo. " inmidas (if you want to run MIDAS defaults)"
80 echoscip-shell system . . echo. " gomidas (to restart the previous MIDAS session)"
81 echoscip-shell system . . echo. " helpmidas (standalone GUI help for MIDAS)"
82 echoscip-shell system . . echo. " drs <midas_command> (execute MIDAS command from Unix command line)"
83 echoscip-shell system . . echo. "**********************************************************************"
84
85 exit 0