[BACK]Return to import CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / terminfo

File: [cvs.NetBSD.org] / src / share / terminfo / import (download)

Revision 1.1, Wed Nov 27 19:00:25 2019 UTC (16 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, HEAD
Branch point for: phil-wifi

simple import script

#!/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}"