repo.or.cz
/
guilt
/
mob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PATCH] guilt: improve patch header handling
[guilt/mob.git]
/
guilt-help
blob
b0d232b12c9ea4c7b903e3f88c0142f2f6ca8e02
1
#!/bin/sh
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2007
4
#
5
6
DO_NOT_CHECK_BRANCH_EXISTENCE
=
1
7
8
USAGE
=
"[<command> | <topic>]"
9
.
`dirname
$0
`
/
guilt
10
11
case
$#
in
12
0
)
13
page
=
"guilt"
14
;;
15
1
)
16
case
"
$1
"
in
17
guilt
*)
18
# guilt --help
19
# guilt-cmd --help
20
# guilt-help guilt-foo
21
page
=
"
$1
"
;;
22
*)
23
# guilt-help foo
24
page
=
"guilt-
$1
"
;;
25
esac
26
;;
27
*)
28
usage
29
;;
30
esac
31
32
MANDIR
=
`dirname
$0
`
/
..
/
man
33
MANDIR
=
`(cd "
$MANDIR
"; pwd)`
34
exec
man
-M
"
$MANDIR
"
"
$page
"