summaryrefslogtreecommitdiff
path: root/textproc/xmlto/patches/patch-format_docbook_txt
blob: 847e6afc0a3266c8d7131531d0b634684cde2c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-format_docbook_txt,v 1.1 2015/12/11 23:31:09 joerg Exp $

--- format/docbook/txt.orig	2015-12-11 20:30:43.000000000 +0000
+++ format/docbook/txt
@@ -1,14 +1,14 @@
 case "$USE_BACKEND" in
 DEFAULT|DBLATEX)
-	if [ -n "`type -t $W3M_PATH`" ]
+	if type "$W3M_PATH" > /dev/null 2>&1
 	then
 	  CONVERT="$W3M_PATH"
 	  ARGS="-T text/html -dump"
-	elif [ -n "`type -t $LYNX_PATH`" ]
+	elif type "$LYNX_PATH" > /dev/null 2>&1
 	then
 	  CONVERT="$LYNX_PATH"
 	  ARGS="-force_html -dump -nolist -width=72"
-	elif [ -n "`type -t $LINKS_PATH`" ]
+	elif type "$LINKS_PATH" > /dev/null 2>&1
 	then
 	  CONVERT="$LINKS_PATH"
 	  ARGS="-dump"