blob: 303d44403a53837f3c2a72db5ee7c94d4f7730d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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}"
|