Debian Codegraph @

install/unix/help

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 # @(#)help.sh 19.1 (ESO-IPG) 02/25/03 13:51:10
3 # .COPYRIGHT: Copyright (c) 1988 European Southern Observatory,
4 # all rights reserved
5 # .TYPE command
6 # .NAME help.sh
7 # .LANGUAGE shell script
8 # .ENVIRONMENT Unix Systems. Executable under SHELL and C-SHELL
9 # .COMMENTS Installation procedure of the MIDAS system starting from
10 # scratch.
11 # Usage: help
12 #
13 # .AUTHOR Carlos Guirao
14 # .VERSION 1.1 14-Oct-1988: Implementation
15 # .VERSION 1.2 05-Dec-1989: Adding "echo" definition
16 echo=echo
17 if [scip-shell system . . `[`. "`echoscip-shell system . . echo. -n`" = "-n" ] ; then
18 SV_NONL="\c"
19 else
20 echo="echo -n"
21 fi
22
23 #
24 # First of all, goto the config directory MID_INSTALL
25 # <dirname> & <basename> commands emulated with <sed>
26 # cd `dirname $0`
27 # MIDVERS=`basename $VERSDIR`
28 # MIDASHOME=`dirname $VERSDIR`
29 #
30 if [scip-shell system . . `[`. -z "$MIDASHOME" -o -z "$MIDVERS" ] ; then
31 cd `echoscip-shell system . . echo. $0 | sedscip-shell system . . sed. -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'`
32 MID_INSTALL=`pwdscip-shell system . . pwd.`
33 VERSDIR=`echoscip-shell system . . echo. $MID_INSTALL | sedscip-shell system . . sed. 's/\/install\/unix$//'`
34 MIDVERS=`echoscip-shell system . . echo. $VERSDIR | sedscip-shell system . . sed. -e 's/^.*\///'`
35 MIDASHOME=`echoscip-shell system . . echo. $VERSDIR | sedscip-shell system . . sed. -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'`
36 else
37 cd $MIDASHOME/$MIDVERS/install/unix
38 fi
39
40 MID_INSTALL=$MIDASHOME/$MIDVERS/install/unix
41 MID_HOME=$MIDASHOME/$MIDVERS
42
43 #
44 # START
45 #
46 clearscip-shell system . . clear.
47
48 task="unknown"
49 while truescip-shell system . . true.
50 do
51 echoscip-shell system . . echo. ""
52 echoscip-shell system . . echo. " MIDAS HELP MENU:"
53 echoscip-shell system . . echo. " ========================================"
54 echoscip-shell system . . echo. " 0 Config MIDAS."
55 echoscip-shell system . . echo. " 1 List and description of MIDAS packages."
56 echoscip-shell system . . echo. " 2 Select only required packages."
57 echoscip-shell system . . echo. " 3 Select all packages."
58 echoscip-shell system . . echo. " 4 Select MIDAS core & packages of your choice."
59 echoscip-shell system . . echo. " 5 Preinstall MIDAS."
60 echoscip-shell system . . echo. " 6 Install MIDAS."
61 echoscip-shell system . . echo. " 7 Update MIDAS."
62 echoscip-shell system . . echo. " 8 Setup MIDAS."
63 echoscip-shell system . . echo. " 9 Clean MIDAS."
64 echoscip-shell system . . echo. " q QUIT"
65 echoscip-shell system . . echo. ""
66 $echo " Select: " $SV_NONL
67
68 read task
69 task=`echoscip-shell system . . echo. $task | trscip-shell system . . tr. A-Z a-z`
70
71 case $task in
72 0)
73 clearscip-shell system . . clear.
74 catscip-shell system . . cat. $MID_HOME/doc/install/config.doc | morescip-shell system . . more.
75 ;;
76 1)
77 clearscip-shell system . . clear.
78 catscip-shell system . . cat. $MID_HOME/doc/install/list.doc | morescip-shell system . . more.
79 ;;
80 2)
81 clearscip-shell system . . clear.
82 catscip-shell system . . cat. $MID_HOME/doc/install/select.doc | morescip-shell system . . more.
83 ;;
84 3)
85 clearscip-shell system . . clear.
86 catscip-shell system . . cat. $MID_HOME/doc/install/select.doc | morescip-shell system . . more.
87 ;;
88 4)
89 clearscip-shell system . . clear.
90 catscip-shell system . . cat. $MID_HOME/doc/install/select.doc | morescip-shell system . . more.
91 ;;
92 5)
93 clearscip-shell system . . clear.
94 catscip-shell system . . cat. $MID_HOME/doc/install/preinstall.doc | morescip-shell system . . more.
95 ;;
96 6)
97 clearscip-shell system . . clear.
98 catscip-shell system . . cat. $MID_HOME/doc/install/install.doc | morescip-shell system . . more.
99 ;;
100 7)
101 clearscip-shell system . . clear.
102 catscip-shell system . . cat. $MID_HOME/doc/install/update.doc | morescip-shell system . . more.
103 ;;
104 8)
105 clearscip-shell system . . clear.
106 catscip-shell system . . cat. $MID_HOME/doc/install/setup.doc | morescip-shell system . . more.
107 ;;
108 9)
109 clearscip-shell system . . clear.
110 catscip-shell system . . cat. $MID_HOME/doc/install/cleanm.doc | morescip-shell system . . more.
111 ;;
112 q)
113 clearscip-shell system . . clear.
114 exit
115 ;;
116 *) echoscip-shell system . . echo. " Selection unknown"
117 ;;
118 esac
119 echoscip-shell system . . echo. ""
120 $echo "Type <RETURN> to continue...." $SV_NONL
121 read key
122 clearscip-shell system . . clear.
123 done