summaryrefslogtreecommitdiff
path: root/print/texlive-tetex/patches/patch-ab
blob: fc6ff9da74282afe286e5a331c237782f0c46b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
$NetBSD: patch-ab,v 1.2 2009/09/20 03:33:43 minskim Exp $

--- texconfig-dialog.orig	2007-07-16 10:08:10.000000000 -0700
+++ texconfig-dialog
@@ -83,14 +83,7 @@ logexec()
 runDialog()
 {
   termCtl clear
-  if test -n "$DIALOG_PROG"; then
-    $DIALOG_PROG --title "TeX setup utility" ${1+"$@"}
-    runDialogRc=$?
-  else
-    TERM=$DIALOG_TERM TERMINFO=$DIALOG_TERMINFO \
-      tcdialog --title "TeX setup utility" ${1+"$@"}
-    runDialogRc=$?
-  fi
+  @DIALOG@ --title "TeX setup utility" ${1+"$@"}
   termCtl clear
   (exit $runDialogRc)
   return $runDialogRc
@@ -105,7 +98,7 @@ findDialog()
 {
   for bin in whiptail dialog
   do
-    binLoc=`texconfig findprog $bin`
+    binLoc=`@TEXCONFIG@ findprog $bin`
     case $binLoc in
       "") DIALOG_PROG="";;
       *)  DIALOG_PROG=$binLoc; break;;
@@ -243,7 +236,7 @@ Chosse a mode to be used when metafont g
 be differences between modes of the same resolution. See the comments in the file modes.mf for more details.
 \"" \
       23 80 14 \
-      `texconfig mode-list` 2>"$tmpmenu"
+      `@TEXCONFIG@ mode-list` 2>"$tmpmenu"
 }
 
 menuMode()
@@ -348,7 +341,7 @@ offset), e.g. 2mm,-0.5in (right 2mm and 
       PAPER)
         eval runDialog \
           --menu \'\\n\\nChoose the default papersize definition for dvips.\\n\\n\' \
-          23 80 8 `texconfig dvips paper-list` \
+          23 80 8 `@TEXCONFIG@ dvips paper-list` \
           2>"$tmpmenu"
         paper=`cat "$tmpmenu"`
         if test -n "$paper"; then
@@ -424,7 +417,7 @@ menuHyphenation()
 Choose format to set up hyphenation for.
 " \
     23 80 14 \
-    `texconfig hyphen-list | sed 's@\(.*\)@\1 \1@'`  2>"$tmpmenu"
+    `@TEXCONFIG@ hyphen-list | sed 's@\(.*\)@\1 \1@'`  2>"$tmpmenu"
   p=`cat "$tmpmenu"`
   case $p in
     "")
@@ -454,9 +447,9 @@ eof
 esac
 
 
-: ${TEXMFCONFIG=`kpsewhich -var-value=TEXMFCONFIG`}
-: ${TEXMFVAR=`kpsewhich -var-value=TEXMFVAR`}
-: ${TEXMFMAIN=`kpsewhich -var-value=TEXMFMAIN`}
+: ${TEXMFCONFIG=`@KPSEWHICH@ -var-value=TEXMFCONFIG`}
+: ${TEXMFVAR=`@KPSEWHICH@ -var-value=TEXMFVAR`}
+: ${TEXMFMAIN=`@KPSEWHICH@ -var-value=TEXMFMAIN`}
 export TEXMFCONFIG TEXMFVAR TEXMFMAIN
 
 setupTmpDir