X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=misc%2Fgen_edit.sh;h=3460afcdf9bb56b06cf11bdc74935697cb0c03a4;hp=e84c039c0cfc58d035d42dc22857254040001056;hb=71244b7927a8918c0b09a8eb13b017ef0ebb6de8;hpb=01433b4eede468929bccc74b22324cb44540e990 diff --git a/misc/gen_edit.sh b/misc/gen_edit.sh index e84c039c..3460afcd 100755 --- a/misc/gen_edit.sh +++ b/misc/gen_edit.sh @@ -29,7 +29,7 @@ # # Author: Thomas E. Dickey # -# $Id: gen_edit.sh,v 1.3 2012/01/22 19:58:06 Sven.Joachim Exp $ +# $Id: gen_edit.sh,v 1.5 2012/04/01 15:04:37 tom Exp $ # Generate a sed-script for converting the terminfo.src to the form which will # be installed. # @@ -37,8 +37,12 @@ # The leaf directory names (lib, tabset, terminfo) # -: ${datadir=@datadir@} -: ${xterm_new=@WHICH_XTERM@} +linux_dft=linux2.2 + +: ${datadir=/usr/share} +: ${WHICH_LINUX=$linux_dft} +: ${WHICH_XTERM=xterm-new} +: ${XTERM_KBS=BS} # If we're not installing into /usr/share/, we'll have to adjust the location # of the tabset files in terminfo.src (which are in a parallel directory). @@ -49,7 +53,8 @@ s%/usr/share/tabset%$TABSET%g EOF fi -if test "$xterm_new" != "xterm-new" ; then +if test "$WHICH_XTERM" != "xterm-new" ; then +echo "** using $WHICH_XTERM terminal description for XTerm entry" >&2 cat </dev/null` -if test "x$system" = xLinux -then - case x`uname -r` in - x1.*) +if test "$XTERM_KBS" != "BS" ; then +echo "** using DEL for XTerm backspace-key" >&2 cat </dev/null` + if test "x$system" = xLinux + then + case x`uname -r` in + x1.*) + WHICH_LINUX=linux-c + ;; + x2.[0-4]*) + WHICH_LINUX=linux2.2 + ;; + *) + WHICH_LINUX=linux3.0 + ;; + esac + else + WHICH_LINUX=$linux_dft + fi + ;; +xlinux*) + # allow specific setting + ;; +*) + WHICH_LINUX=$linux_dft + ;; +esac + +if test $WHICH_LINUX != $linux_dft +then +echo "** using $WHICH_LINUX terminal description for Linux console" >&2 cat <