1 51e66a47SVivek Prakash#!/bin/sh 2 0c3ae37fSLionel Sambuc# $NetBSD: genterms,v 1.4 2011/11/02 12:09:25 roy Exp $ 3 51e66a47SVivek Prakash 4 0c3ae37fSLionel Sambuc# Copyright (c) 2010, 2011 The NetBSD Foundation, Inc. 5 51e66a47SVivek Prakash# 6 51e66a47SVivek Prakash# This code is derived from software contributed to The NetBSD Foundation 7 51e66a47SVivek Prakash# by Roy Marples. 8 51e66a47SVivek Prakash# 9 51e66a47SVivek Prakash# Redistribution and use in source and binary forms, with or without 10 51e66a47SVivek Prakash# modification, are permitted provided that the following conditions 11 51e66a47SVivek Prakash# are met: 12 51e66a47SVivek Prakash# 1. Redistributions of source code must retain the above copyright 13 51e66a47SVivek Prakash# notice, this list of conditions and the following disclaimer. 14 51e66a47SVivek Prakash# 2. Redistributions in binary form must reproduce the above copyright 15 51e66a47SVivek Prakash# notice, this list of conditions and the following disclaimer in the 16 51e66a47SVivek Prakash# documentation and/or other materials provided with the distribution. 17 51e66a47SVivek Prakash# 18 51e66a47SVivek Prakash# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19 51e66a47SVivek Prakash# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20 51e66a47SVivek Prakash# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 51e66a47SVivek Prakash# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 51e66a47SVivek Prakash# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 51e66a47SVivek Prakash# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 51e66a47SVivek Prakash# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 51e66a47SVivek Prakash# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 51e66a47SVivek Prakash# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 51e66a47SVivek Prakash# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 51e66a47SVivek Prakash 29 51e66a47SVivek Prakash 30 51e66a47SVivek Prakash# Generate compiled terminfo descriptions to embed into libterminfo 31 51e66a47SVivek Prakash 32 51e66a47SVivek Prakashset -e 33 51e66a47SVivek Prakash: ${TOOL_TIC:=tic} 34 f93afa00SThomas Veerman: ${NETBSDSRCDIR:=/usr/src} 35 f93afa00SThomas Veerman: ${TERMINFO:=${NETBSDSRCDIR}/share/terminfo/terminfo} 36 51e66a47SVivek Prakash 37 51e66a47SVivek Prakashecho "/* DO NOT EDIT" 38 0c3ae37fSLionel Sambucecho " * Automatically generated from terminfo */" 39 51e66a47SVivek Prakashecho 40 *f9f6c925SLionel Sambuc${TOOL_TIC} -Sx ${TERMINFO} ansi dumb minix screen screen-256color rxvt rxvt-256color vt100 vt220 wsvt25 xterm 41