Bug#124337: [patch] texconfig with whiptail instead of dialog
Hi Thomas,
YAMASHITA Junji <ysjj@unixuser.org> suggested that texconfig should be
able to work automatically with whiptail when dialog isn't available.
Package: whiptail
Description: Displays user-friendly dialog boxes from shell scripts.
whiptail is a "dialog" replacement using newt instead of ncurses. It
provides a method of displaying several different types of dialog boxes
from shell scripts. This allows a developer of a script to interact with
the user in a much friendlier manner.
The patch to implement this is simple:
--- tetex-bin-1.0.7+20011202.orig/texk/tetex/texconfig
+++ tetex-bin-1.0.7+20011202/texk/tetex/texconfig
@@ -139,6 +139,7 @@
{ u=`uname -s`; } 2>/dev/null
case "$u" in
FreeBSD|Linux)
+ 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
;;
cu
Adrian
--
Get my GPG key: finger bunk@debian.org | gpg --import
Fingerprint: B29C E71E FE19 6755 5C8A 84D4 99FC EA98 4F12 B400
Reply to: