11.1Sroy#!/bin/sh
21.4Sroy# $NetBSD: genterms,v 1.4 2011/11/02 12:09:25 roy Exp $
31.1Sroy
41.4Sroy# Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
51.1Sroy#
61.1Sroy# This code is derived from software contributed to The NetBSD Foundation
71.1Sroy# by Roy Marples.
81.1Sroy#
91.1Sroy# Redistribution and use in source and binary forms, with or without
101.1Sroy# modification, are permitted provided that the following conditions
111.1Sroy# are met:
121.1Sroy# 1. Redistributions of source code must retain the above copyright
131.1Sroy#    notice, this list of conditions and the following disclaimer.
141.1Sroy# 2. Redistributions in binary form must reproduce the above copyright
151.1Sroy#    notice, this list of conditions and the following disclaimer in the
161.1Sroy#    documentation and/or other materials provided with the distribution.
171.1Sroy#
181.1Sroy# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
191.1Sroy# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
201.1Sroy# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
211.1Sroy# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
221.1Sroy# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
231.1Sroy# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
241.1Sroy# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
251.1Sroy# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
261.1Sroy# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
271.1Sroy# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
281.1Sroy
291.1Sroy
301.1Sroy# Generate compiled terminfo descriptions to embed into libterminfo
311.1Sroy
321.2Sroyset -e
331.1Sroy: ${TOOL_TIC:=tic}
341.1Sroy: ${NETBSDSRCDIR:=/usr/src}
351.1Sroy: ${TERMINFO:=${NETBSDSRCDIR}/share/terminfo/terminfo}
361.1Sroy
371.1Sroyecho "/* DO NOT EDIT"
381.4Sroyecho " * Automatically generated from terminfo */"
391.1Sroyecho
401.1Sroy${TOOL_TIC} -Sx ${TERMINFO} ansi dumb vt100 vt220 wsvt25 xterm
41