From fb0ee17c139fd826eec14d33b1b7eee8dc35bb30 Mon Sep 17 00:00:00 2001 From: mycroft Date: Sat, 15 Apr 2000 15:52:45 +0000 Subject: Remove all the terminfo hackery from texconfig. We don't need it, and it loses when dialog doesn't use terminfo. --- print/teTeX-bin/patches/patch-ap | 90 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 print/teTeX-bin/patches/patch-ap (limited to 'print') diff --git a/print/teTeX-bin/patches/patch-ap b/print/teTeX-bin/patches/patch-ap new file mode 100644 index 00000000000..3a50ae076d2 --- /dev/null +++ b/print/teTeX-bin/patches/patch-ap @@ -0,0 +1,90 @@ +$NetBSD: patch-ap,v 1.3 2000/04/15 15:52:45 mycroft Exp $ + +--- texconfig.orig Fri Jun 25 15:59:21 1999 ++++ 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 <