File: mpiman.in

package info (click to toggle)
mpich 1.1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 22,116 kB
  • ctags: 27,349
  • sloc: ansic: 193,435; sh: 11,172; fortran: 6,545; makefile: 5,801; cpp: 5,020; tcl: 3,548; asm: 3,536; csh: 1,079; java: 614; perl: 183; awk: 168; sed: 70; f90: 62
file content (58 lines) | stat: -rwxr-xr-x 975 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#! /bin/sh
#
#    Starts up xman with the tools manual pages
#
if [ -z "$MPIDIR" ] ; then MPIDIR="#INSTALL_DIR#" ; fi
#
# Start the appropriate program
program="xman -notopbox -helpfile $MPIDIR/man/mpiman.help"
docdir=man
mankind=UNIX
MANPATH=$MPIDIR/$docdir
export MANPATH
#
for arg in "$@" ; do
    case $arg in 
	-echo)
	set -x
	;;
	-xmosaic)
	program="xmosaic $MPIDIR/www/index.html"
	docdir=www
	mankind=HTML
	;;
	-mosaic)
	program="mosaic $MPIDIR/www/index.html"
	docdir=www
	mankind=HTML
	;;
	-netscape)
	program="netscape $MPIDIR/www/index.html"
	docdir=www
	mankind=HTML
	;;
	-xman)
	program="xman -notopbox -helpfile $MPIDIR/man/mpiman.help"
	docdir=man
	MANPATH=$MPIDIR/$docdir
	export MANPATH
	mankind=UNIX
	;;
	-man)
	program=man
	docdir=man
	MANPATH=$MPIDIR/$docdir
	export MANPATH
	mankind=UNIX
	;;
	*)
	args="$args $arg"
	;;
    esac
done
if [ ! -d $MPIDIR/$docdir ] ; then
    echo "You do not have $mankind manpages installed"
    exit 1
fi
$program $args