Subversion Repositories lagranto.um

Rev

Rev 3 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/bin/csh

# Set Lagranto 
set LAGRANTO = ${LAGRANTOBASE}.${MODEL}/

set dir = ${LAGRANTO}/docu/
set viewer = xpdf

if ( (${#argv} == 0) ) then
    nroff -man ${dir}/man/lagrantohelp.0 | less
    exit 0
endif

set mode = $1

if ( "$mode" == "future" ) then
    nroff -man ${dir}/man/futureplans.0 | less
    exit 0
endif

if ( "$mode" == "tutorial" ) then
    ${viewer} ${dir}/tutorial/tutorial.pdf 
    exit 0
endif

if ( "$mode" == "reference" ) then
    ${viewer} ${dir}/reference/reference.pdf
    exit 0
endif
echo ${mode}

if ( "$mode" == "presentation" ) then
    ${viewer} ${dir}/presentation/presentation.pdf
    exit 0
endif
echo ${mode}

nroff -man ${dir}/man/${mode}.0 | less
exit 0