xref: /minix3/lib/libterminfo/genterms (revision f9f6c9251ab32bc7703a1a09bdf7afd6971976f7)
151e66a47SVivek Prakash#!/bin/sh
20c3ae37fSLionel Sambuc# $NetBSD: genterms,v 1.4 2011/11/02 12:09:25 roy Exp $
351e66a47SVivek Prakash
40c3ae37fSLionel Sambuc# Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
551e66a47SVivek Prakash#
651e66a47SVivek Prakash# This code is derived from software contributed to The NetBSD Foundation
751e66a47SVivek Prakash# by Roy Marples.
851e66a47SVivek Prakash#
951e66a47SVivek Prakash# Redistribution and use in source and binary forms, with or without
1051e66a47SVivek Prakash# modification, are permitted provided that the following conditions
1151e66a47SVivek Prakash# are met:
1251e66a47SVivek Prakash# 1. Redistributions of source code must retain the above copyright
1351e66a47SVivek Prakash#    notice, this list of conditions and the following disclaimer.
1451e66a47SVivek Prakash# 2. Redistributions in binary form must reproduce the above copyright
1551e66a47SVivek Prakash#    notice, this list of conditions and the following disclaimer in the
1651e66a47SVivek Prakash#    documentation and/or other materials provided with the distribution.
1751e66a47SVivek Prakash#
1851e66a47SVivek Prakash# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1951e66a47SVivek Prakash# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2051e66a47SVivek Prakash# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2151e66a47SVivek Prakash# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2251e66a47SVivek Prakash# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2351e66a47SVivek Prakash# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2451e66a47SVivek Prakash# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2551e66a47SVivek Prakash# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2651e66a47SVivek Prakash# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2751e66a47SVivek Prakash# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2851e66a47SVivek Prakash
2951e66a47SVivek Prakash
3051e66a47SVivek Prakash# Generate compiled terminfo descriptions to embed into libterminfo
3151e66a47SVivek Prakash
3251e66a47SVivek Prakashset -e
3351e66a47SVivek Prakash: ${TOOL_TIC:=tic}
34f93afa00SThomas Veerman: ${NETBSDSRCDIR:=/usr/src}
35f93afa00SThomas Veerman: ${TERMINFO:=${NETBSDSRCDIR}/share/terminfo/terminfo}
3651e66a47SVivek Prakash
3751e66a47SVivek Prakashecho "/* DO NOT EDIT"
380c3ae37fSLionel Sambucecho " * Automatically generated from terminfo */"
3951e66a47SVivek Prakashecho
40*f9f6c925SLionel Sambuc${TOOL_TIC} -Sx ${TERMINFO} ansi dumb minix screen screen-256color rxvt rxvt-256color vt100 vt220 wsvt25 xterm
41