summaryrefslogtreecommitdiff
path: root/print/teTeX3-bin/patches/patch-ap
blob: 87497d09c5b20c3276410e0a82e9c6404448471f (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
$NetBSD: patch-ap,v 1.1.1.1 2005/03/31 22:09:18 hubertf Exp $

--- texk/tetex/texconfig.orig	2005-02-06 18:20:53.000000000 +0000
+++ texk/tetex/texconfig
@@ -157,36 +157,13 @@ checkForBinary()
 }
 
 ###############################################################################
-# findDialogProg(void)
-#   Some systems have their own dialog. Use it then and do not use
-#   faked TERM and TERMINFO variables when calling that dialog.
-###############################################################################
-findDialogProg()
-{
-  { u=`uname -s`; } 2>/dev/null
-  case "$u" in
-    FreeBSD|Linux|cygwin*|CYGWIN*)
-      test -f /usr/bin/whiptail && DIALOG_PROG=/usr/bin/whiptail
-      test -f /usr/bin/dialog && DIALOG_PROG=/usr/bin/dialog
-      test -f /bin/dialog && DIALOG_PROG=/bin/dialog
-      ;;
-  esac
-}
-
-###############################################################################
 # runDialog(args)
-#   call either tcdialog or $DIALOG_PROG
+#   call dialog 
 ###############################################################################
 runDialog()
 {
   test -z "$NO_CLEAR" && tty -s && clear
-  case "$DIALOG_PROG" in
-    "")
-      TERM=$DIALOG_TERM TERMINFO=$DIALOG_TERMINFO \
-        tcdialog --title "$progname setup utility" ${1+"$@"};;
-    *)
-      $DIALOG_PROG --title "$progname setup utility" ${1+"$@"};;
-  esac
+  dialog --title "$progname setup utility" ${1+"$@"}
 }