1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Daniel Kobras <kobras@debian.org>
Subject: dx -longhelp invokes man browser.
From Debian diff dx_4.3.0-2, converted to dpatch format.
--- dx-4.3.0.orig/bin/dx.in
+++ dx-4.3.0/bin/dx.in
@@ -60,12 +60,12 @@
#
longhelp() {
-if test -f "$dxroot/man/catl/dx.l" ; then
- more "$dxroot/man/catl/dx.l"
+manbrowser="`/usr/bin/which man`"
+if test -x "$manbrowser"; then
+ "$manbrowser" 1 dx
else
- echo "cannot find $dxroot/man/catl/dx.l"
- echo "set the DXROOT environment variable to the root of the"
- echo "dx installation tree and try again."
+ echo Failed to launch standard man browser. Please check out man page
+ echo 'dx(1)' with a man browser of your choice.
fi
exit 1
|