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