xref: /netbsd-src/lib/libterminfo/genterms (revision 9e5def586b636b85607872122d0b5abfee0a6ea6)
1420f923aSroy#!/bin/sh
2*9e5def58Sroy# $NetBSD: genterms,v 1.4 2011/11/02 12:09:25 roy Exp $
3420f923aSroy
4*9e5def58Sroy# Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
5420f923aSroy#
6420f923aSroy# This code is derived from software contributed to The NetBSD Foundation
7420f923aSroy# by Roy Marples.
8420f923aSroy#
9420f923aSroy# Redistribution and use in source and binary forms, with or without
10420f923aSroy# modification, are permitted provided that the following conditions
11420f923aSroy# are met:
12420f923aSroy# 1. Redistributions of source code must retain the above copyright
13420f923aSroy#    notice, this list of conditions and the following disclaimer.
14420f923aSroy# 2. Redistributions in binary form must reproduce the above copyright
15420f923aSroy#    notice, this list of conditions and the following disclaimer in the
16420f923aSroy#    documentation and/or other materials provided with the distribution.
17420f923aSroy#
18420f923aSroy# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19420f923aSroy# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20420f923aSroy# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21420f923aSroy# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22420f923aSroy# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23420f923aSroy# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24420f923aSroy# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25420f923aSroy# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26420f923aSroy# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27420f923aSroy# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28420f923aSroy
29420f923aSroy
30420f923aSroy# Generate compiled terminfo descriptions to embed into libterminfo
31420f923aSroy
32ca77b139Sroyset -e
33420f923aSroy: ${TOOL_TIC:=tic}
34420f923aSroy: ${NETBSDSRCDIR:=/usr/src}
35420f923aSroy: ${TERMINFO:=${NETBSDSRCDIR}/share/terminfo/terminfo}
36420f923aSroy
37420f923aSroyecho "/* DO NOT EDIT"
38*9e5def58Sroyecho " * Automatically generated from terminfo */"
39420f923aSroyecho
40420f923aSroy${TOOL_TIC} -Sx ${TERMINFO} ansi dumb vt100 vt220 wsvt25 xterm
41