#!/bin/sh # $NetBSD: import,v 1.2 2024/01/27 15:53:57 christos Exp $ # # Simple shell script to import the newest version of terminfo # Download it from ftp://ftp.invisible-island.net/ncurses/current input=$1 case "${input}" in terminfo-[0-9]*.src) ;; *) echo "$0: Invalid input file name" 1>&2 exit 1 ;; esac tag=${input%%.src} vendor=NCURSES TMP=$(mktemp -d /tmp/import-terminfo) trap "rm -fr ${TMP}" 0 1 2 15 cp "$1" "${TMP}/terminfo" cd "${TMP}" cleantags terminfo cvs -d cvs.netbsd.org:/cvsroot import \ -m "Import $1" src/share/terminfo "${vendor}" "${tag}"