summaryrefslogtreecommitdiff
path: root/print/teTeX-bin/patches/patch-ap
blob: 2295bd5556586591b8323700a87484f8755fd801 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
$NetBSD: patch-ap,v 1.4 2000/04/15 22:10:06 mycroft Exp $

--- texk/tetex/texconfig.orig	Fri Jun 25 15:59:21 1999
+++ texk/tetex/texconfig	Sat Apr 15 11:49:13 2000
@@ -31,8 +31,6 @@
 # Thomas Esser, te@informatik.uni-hannover.de
 # Copyright: Thomas Esser, 1994, 1995, 1996, 1997, 1999. Public domain.
 
-# You may override DIALOG_TERMINFO and DIALOG_TERM in your environment.
-
 progname=`basename $0`
 tmpdir=${TMP-/tmp}/texconf$$
 tmpmenu=$tmpdir/menu.out
@@ -122,27 +120,10 @@
 
 cls() { test -z "$NO_CLEAR" && clear; }
 
-# Some systems have their own dialog. Use it then and do not use
-# faked TERM and TERMINFO variables when calling that dialog.
-find_dialogtype()
-{
-  own_dialog=false
-  { u=`uname -s`; } 2>/dev/null
-  case "$u" in
-    FreeBSD|Linux)
-      DIALOG_PROG=/usr/bin/dialog
-      test -x "$DIALOG_PROG" && own_dialog=true;;
-  esac
-}
- 
 run_dialog()
 {
   test -z "$NO_CLEAR" && clear
-  if $own_dialog; then
-    $DIALOG_PROG --title "$version setup utility" "$@"
-  else
-    TERM=$DIALOG_TERM TERMINFO=$DIALOG_TERMINFO dialog --title "$version setup utility" "$@"
-  fi
+  dialog --title "$version setup utility" "$@"
 }
 
 check_environ()
@@ -219,22 +200,6 @@
   echo "Done." >&2
 }
 
-check_terminal()
-{
-  terminfo=${DIALOG_TERMINFO-/usr/lib/terminfo}
-
-  test -f $terminfo/`echo $DIALOG_TERM | sed 's/\(.\).*/\1/'`/$DIALOG_TERM \
-    && return
-
-  cat >&2 <<eof
-TERM=$DIALOG_TERM is not supported by your terminfo system.
-See terminfo(5), tic(1m) and term(5) for help.
-
-$progname failed. Program aborted.
-eof
-  exit 1
-}
-
 fix_pager_more()
 {
   case "$PAGER" in
@@ -1507,7 +1472,6 @@
 #------------------ begin: initialisation -----------------------------------
 find_echo
 find_fmt
-find_dialogtype
 check_environ
 require_binary kpsewhich pwd
 
@@ -1574,8 +1538,6 @@
 
 # The fallback directory for private scripts and config files.
 : ${TEXMF=`kpsewhich -expand-var '$TEXMF'`}
-: ${DIALOG_TERMINFO=$TC_TEXMFMAIN/texconfig}
-: ${DIALOG_TERM=generic}
 
 formats=$TC_VARTEXMF/web2c
 bases=$TC_VARTEXMF/web2c
@@ -1712,7 +1674,6 @@
 fmtutil --missing
 texlinks ${SILENT_TEXLINKS+-s}
 
-check_terminal
 cat <<eof
 
 The interactive texconfig utility will be started now. Make sure your