File: 10-invoke-man.patch

package info (click to toggle)
dx 1%3A4.4.4-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 56,128 kB
  • sloc: ansic: 365,481; cpp: 156,584; sh: 10,872; java: 10,641; makefile: 2,294; javascript: 837; awk: 444; yacc: 327
file content (24 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (7)
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