diff options
author | Daniel Baumann <daniel@debian.org> | 2010-04-09 20:04:52 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:06 +0100 |
commit | 7d7641e34e1e19b5827eb3368bf26d6a8836cd6e (patch) | |
tree | 06497f562af86e3d1d0cb584ed823c99fefad9ab | |
parent | 117646f2bfdb90c2fef9f960c17d2487ec378d81 (diff) | |
download | live-build-7d7641e34e1e19b5827eb3368bf26d6a8836cd6e.zip live-build-7d7641e34e1e19b5827eb3368bf26d6a8836cd6e.tar.gz |
Updating Man function to work with lh as wrapper.
-rwxr-xr-x | functions/man.sh | 2 | ||||
-rwxr-xr-x | helpers/lh | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/functions/man.sh b/functions/man.sh index 1845af9..c01cf1b 100755 --- a/functions/man.sh +++ b/functions/man.sh @@ -11,7 +11,7 @@ Man () { if [ -x "$(which man 2>/dev/null)" ] then - man $(basename ${0}) + man lh_$(basename ${0}) exit 0 fi } @@ -19,7 +19,14 @@ USAGE="FIXME" case "${1}" in -h|--help) - Man + if [ -x "$(which man 2>/dev/null)" ] + then + man lh + exit 0 + else + ${0} --usage + exit 0 + fi ;; ""|-u|--usage) |