]> git.pld-linux.org Git - packages/xmlto.git/blob - xmlto-no_which.patch
- xmlto without R: which
[packages/xmlto.git] / xmlto-no_which.patch
1 --- xmlto-0.0.22/xmlto.in.orig  2009-03-24 15:54:31.000000000 +0100
2 +++ xmlto-0.0.22/xmlto.in       2009-10-29 01:09:19.000000000 +0100
3 @@ -124,7 +124,7 @@
4  XSLTPROC_PATH=@XSLTPROC@
5  
6  # Try to setup papersize using libpaper first ...
7 -if [ -n "`which "$PAPERCONF_PATH" 2>/dev/null`" ]
8 +if [ -n "$PAPERCONF_PATH" ]
9  then
10    papername=`"$PAPERCONF_PATH" -n`
11    paperheight=`"$PAPERCONF_PATH" -mh | sed 's/ //g'`
12 @@ -155,7 +155,7 @@
13    fi
14  
15  # ... or use magic paper size, based on LC_PAPER
16 -elif [ -n "`which "$LOCALE_PATH" 2>/dev/null`" ]
17 +elif [ -n "$LOCALE_PATH" ]
18  then
19    # For paper sizes we know about, specify them.
20    h=$("$LOCALE_PATH" LC_PAPER 2>/dev/null | head -n 1)
21 @@ -178,7 +178,7 @@
22  fi
23  
24  # Magic encoding, based on locale
25 -if [ -n "`which "$LOCALE_PATH" 2>/dev/null`" ]
26 +if [ -n "$LOCALE_PATH" ]
27  then
28    charmap=$("$LOCALE_PATH" charmap 2>/dev/null)
29  
30 @@ -227,14 +227,14 @@
31  PDFXMLTEX_PATH=@PDFXMLTEX@
32  
33  #check if we could use fop/dblatex backend as default(if not, use passivetex)
34 -if [ x"$USE_BACKEND" = xFOP ] && [ -z "`which "$FOP_PATH" 2>/dev/null`" ]
35 +if [ x"$USE_BACKEND" = xFOP ] && [ -z "$FOP_PATH" ]
36  then
37    echo >&2 "@PACKAGE@: Warning: fop not found or not executable."
38    echo >&2 "@PACKAGE@: Using default backend..."
39    USE_BACKEND=DEFAULT
40  fi
41  if [ x"$USE_BACKEND" = xDBLATEX ] && \
42 -   [ -z "`which "$DBLATEX_PATH" 2>/dev/null`" ]
43 +   [ -z "$DBLATEX_PATH" ]
44  then
45    echo >&2 "@PACKAGE@: Warning: dblatex not found or not executable."
46    echo >&2 "@PACKAGE@: Using default backend..."
47 @@ -328,7 +328,7 @@
48         ;;
49    --with-fop)
50         ##use fop instead of passivetex where possible
51 -       if [ -z "`which "$FOP_PATH" 2>/dev/null`" ]
52 +       if [ -z "$FOP_PATH" ]
53         then
54                 echo >&2 Warning: fop not found or not executable.
55                 echo >&2 Using default backend...
56 @@ -339,7 +339,7 @@
57         ;;
58    --with-dblatex)
59         ##use dblatex instead of passivetex where possible
60 -       if [ -z "`which "$DBLATEX_PATH" 2>/dev/null`" ]
61 +       if [ -z "$DBLATEX_PATH" ]
62         then
63                 echo >&2 Warning: dblatex not found or not executable.
64                 echo >&2 Using default backend...
65 @@ -487,7 +487,7 @@
66  if [ "$SKIP_VALIDATION" -eq 0 ] && [ "$SOURCE_FORMAT" != "fo" ]
67  then
68    #do we have xmllint validation tool?
69 -  if [ -z "`which "$XMLLINT_PATH" 2>/dev/null`" ]
70 +  if [ -z "$XMLLINT_PATH" ]
71    then
72      echo >&2 "@PACKAGE@: xmllint validation tool not found or not executable."
73      echo >&2 "@PACKAGE@: Skipping validation... " \
74 @@ -519,7 +519,7 @@
75  else
76  
77    #do we have xsltproc tool?
78 -  if [ -z "`which "$XSLTPROC_PATH" 2>/dev/null`" ]
79 +  if [ -z "$XSLTPROC_PATH" ]
80    then
81      echo >&2 "@PACKAGE@: Can't continue, xsltproc tool not found or not executable."
82      exit 3
This page took 0.063933 seconds and 3 git commands to generate.