Subversion Repositories lagranto.um

Rev

Rev 3 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 15
1
#!/bin/csh
1
#!/bin/csh
2
 
2
 
-
 
3
# Set Lagranto 
-
 
4
set LAGRANTO = ${LAGRANTOBASE}.${MODEL}/
-
 
5
 
3
set dir = ${LAGRANTO}/docu/
6
set dir = ${LAGRANTO}/docu/
4
set viewer = xpdf
7
set viewer = xpdf
5
 
8
 
6
if ( (${#argv} == 0) ) then
9
if ( (${#argv} == 0) ) then
7
    nroff -man ${dir}/man/lagrantohelp.0 | less
10
    nroff -man ${dir}/man/lagrantohelp.0 | less
8
    exit 0
11
    exit 0
9
endif
12
endif
10
 
13
 
11
set mode = $1
14
set mode = $1
12
 
15
 
13
if ( "$mode" == "future" ) then
16
if ( "$mode" == "future" ) then
14
    nroff -man ${dir}/man/futureplans.0 | less
17
    nroff -man ${dir}/man/futureplans.0 | less
15
    exit 0
18
    exit 0
16
endif
19
endif
17
 
20
 
18
if ( "$mode" == "tutorial" ) then
21
if ( "$mode" == "tutorial" ) then
19
    ${viewer} ${dir}/tutorial/tutorial.pdf 
22
    ${viewer} ${dir}/tutorial/tutorial.pdf 
20
    exit 0
23
    exit 0
21
endif
24
endif
22
 
25
 
23
if ( "$mode" == "reference" ) then
26
if ( "$mode" == "reference" ) then
24
    ${viewer} ${dir}/reference/reference.pdf
27
    ${viewer} ${dir}/reference/reference.pdf
25
    exit 0
28
    exit 0
26
endif
29
endif
27
echo ${mode}
30
echo ${mode}
28
 
31
 
29
if ( "$mode" == "presentation" ) then
32
if ( "$mode" == "presentation" ) then
30
    ${viewer} ${dir}/presentation/presentation.pdf
33
    ${viewer} ${dir}/presentation/presentation.pdf
31
    exit 0
34
    exit 0
32
endif
35
endif
33
echo ${mode}
36
echo ${mode}
34
 
37
 
35
nroff -man ${dir}/man/${mode}.0 | less
38
nroff -man ${dir}/man/${mode}.0 | less
36
exit 0
39
exit 0