Add support for SunOS
[guilt/mob.git] / guilt-help
blobb0d232b12c9ea4c7b903e3f88c0142f2f6ca8e02
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2007
6 DO_NOT_CHECK_BRANCH_EXISTENCE=1
8 USAGE="[<command> | <topic>]"
9 . `dirname $0`/guilt
11 case $# in
13 page="guilt"
16 case "$1" in
17 guilt*)
18 # guilt --help
19 # guilt-cmd --help
20 # guilt-help guilt-foo
21 page="$1" ;;
23 # guilt-help foo
24 page="guilt-$1" ;;
25 esac
28 usage
30 esac
32 MANDIR=`dirname $0`/../man
33 MANDIR=`(cd "$MANDIR"; pwd)`
34 exec man -M "$MANDIR" "$page"