Home | History | Annotate | Line # | Download | only in terminfo
import revision 1.1.4.2
      1 #!/bin/sh
      2 # $NetBSD: import,v 1.1.4.2 2020/04/08 14:07:23 martin Exp $
      3 #
      4 # Simple shell script to import the newest version of terminfo
      5 # Download it from ftp://ftp.invisible-island.net/ncurses/current
      6 
      7 input=$1
      8 case "${input}" in 
      9 terminfo-[0-9]*.src)
     10 	;;
     11 *)
     12 	echo "$0: Invalid input file name" 1>&2
     13 	exit 1
     14 	;;
     15 esac
     16 
     17 tag=${input%%.src}
     18 vendor=NCURSES
     19 
     20 TMP=$(mktemp -d /tmp/import-terminfo)
     21 trap rm -fr "${TMP}" 0 1 2 15
     22 
     23 cp "$1" "${TMP}/terminfo"
     24 cd "${TMP}"
     25 cleantags terminfo
     26 cvs -d cvs.netbsd.org:/cvsroot import \
     27 	-m "Import $1" src/share/terminfo "${vendor}" "${tag}"
     28