version 1.4, 2010/03/03 12:09:49 |
version 1.5, 2011/11/02 12:09:25 |
|
|
#!/bin/sh |
#!/bin/sh |
# $NetBSD$ |
# $NetBSD$ |
|
|
# Copyright (c) 2009 The NetBSD Foundation, Inc. |
# Copyright (c) 2009, 2011 The NetBSD Foundation, Inc. |
# |
# |
# This code is derived from software contributed to The NetBSD Foundation |
# This code is derived from software contributed to The NetBSD Foundation |
# by Roy Marples. |
# by Roy Marples. |
|
|
TERMCAPC=${1:-termcap_map.c} |
TERMCAPC=${1:-termcap_map.c} |
|
|
cat <<EOF |
cat <<EOF |
/* \$NetBSD\$ */ |
|
/* DO NOT EDIT |
/* DO NOT EDIT |
* Automatically generated from termcap.c */ |
* Automatically generated from termcap.c */ |
|
|
#include <sys/cdefs.h> |
|
__RCSID("\$NetBSD$"); |
|
|
|
#include <stdint.h> |
#include <stdint.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <term_private.h> |
#include <term_private.h> |
|
|
|
|
$TOOL_SED -n -e "1,/_ti_cap_flagids/d" -e '/};/,$d' \ |
$TOOL_SED -n -e "1,/_ti_cap_flagids/d" -e '/};/,$d' \ |
-e 's/.*"\([^"]*\)".*/\1/p' $TERMCAPC | \ |
-e 's/.*"\([^"]*\)".*/\1/p' $TERMCAPC | \ |
$TOOL_NBPERF -s -n _t_flaghash |
$TOOL_NBPERF -p -s -n _t_flaghash |
echo |
echo |
$TOOL_SED -n -e "1,/_ti_cap_numids/d" -e '/};/,$d' \ |
$TOOL_SED -n -e "1,/_ti_cap_numids/d" -e '/};/,$d' \ |
-e 's/.*"\([^"]*\)".*/\1/p' $TERMCAPC | \ |
-e 's/.*"\([^"]*\)".*/\1/p' $TERMCAPC | \ |
$TOOL_NBPERF -s -n _t_numhash |
$TOOL_NBPERF -p -s -n _t_numhash |
echo |
echo |
$TOOL_SED -n -e "1,/_ti_cap_strids/d" -e '/};/,$d' \ |
$TOOL_SED -n -e "1,/_ti_cap_strids/d" -e '/};/,$d' \ |
-e 's/.*"\([^"]*\)".*/\1/p' $TERMCAPC | \ |
-e 's/.*"\([^"]*\)".*/\1/p' $TERMCAPC | \ |
$TOOL_NBPERF -s -n _t_strhash |
$TOOL_NBPERF -p -s -n _t_strhash |