Module Name: src Committed By: christos Date: Wed Nov 27 19:00:25 UTC 2019
Added Files: src/share/terminfo: import Log Message: simple import script To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/share/terminfo/import Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Added files: Index: src/share/terminfo/import diff -u /dev/null src/share/terminfo/import:1.1 --- /dev/null Wed Nov 27 14:00:25 2019 +++ src/share/terminfo/import Wed Nov 27 14:00:25 2019 @@ -0,0 +1,27 @@ +#!/bin/sh +# $NetBSD: import,v 1.1 2019/11/27 19:00:25 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}"