28 lines
574 B
Bash
Executable File
28 lines
574 B
Bash
Executable File
#!/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}"
|