[SCM] live-helper branch, debian, updated. debian/2.0_a9-1-10-g17ed4f0

Daniel Baumann daniel at debian.org
Fri Apr 9 19:35:16 UTC 2010


The following commit has been merged in the debian branch:
commit 684e14653f0a0f59492ce6d0a2a3245e511a62cb
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Apr 9 20:04:52 2010 +0200

    Updating Man function to work with lh as wrapper.

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
 }
diff --git a/helpers/lh b/helpers/lh
index 73e7b0b..f44634b 100755
--- a/helpers/lh
+++ b/helpers/lh
@@ -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)

-- 
live-helper



More information about the debian-live-changes mailing list