replace `` with $(). Hopefully with enough examples around people will
forget about ``.
This commit is contained in:
parent
e6dabc3c76
commit
f207e61c08
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $NetBSD: genhash,v 1.6 2010/03/03 12:09:49 roy Exp $
|
||||
# $NetBSD: genhash,v 1.7 2010/10/12 12:57:51 christos Exp $
|
||||
|
||||
# Copyright (c) 2009 The NetBSD Foundation, Inc.
|
||||
#
|
||||
@ -44,9 +44,10 @@ genent()
|
||||
local name=$1 NAME=$2 len=
|
||||
|
||||
# Calculate the maximum word length plus terminator
|
||||
len=`$TOOL_SED -e "1,/enum TI${NAME}/d" -e '/};/,$d' \
|
||||
len=$($TOOL_SED -e "1,/enum TI${NAME}/d" -e '/};/,$d' \
|
||||
-e 's/.*TICODE_\([^,]*\).*/\1X/' $TERMH | \
|
||||
$TOOL_AWK 'BEGIN {L=0} {if (length($1)>L) L=length($1)} END {print L}'`
|
||||
$TOOL_AWK \
|
||||
'BEGIN {L=0} {if (length($1)>L) L=length($1)} END {print L}')
|
||||
|
||||
echo
|
||||
echo "static const char _ti_${name}ids[][${len}] = {"
|
||||
@ -93,7 +94,7 @@ cat <<EOF
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("\$NetBSD: genhash,v 1.6 2010/03/03 12:09:49 roy Exp $");
|
||||
__RCSID("\$NetBSD: genhash,v 1.7 2010/10/12 12:57:51 christos Exp $");
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $NetBSD: genman,v 1.3 2010/03/03 12:09:49 roy Exp $
|
||||
# $NetBSD: genman,v 1.4 2010/10/12 12:57:51 christos Exp $
|
||||
|
||||
# Copyright (c) 2009 The NetBSD Foundation, Inc.
|
||||
#
|
||||
@ -45,15 +45,15 @@ gentab()
|
||||
$TOOL_SED -n \
|
||||
-e "s/#define t_\([^(]*\).*>$tab\[TICODE_\([^]]*\).*/\1 \2/p" \
|
||||
$ti | $TOOL_SORT | while read name code foo; do
|
||||
cap=`$TOOL_SED -ne "s/.*{ \"\(..\)\", TICODE_$code }.*/\1/p" $tc |
|
||||
head -n 1`
|
||||
cap=$($TOOL_SED -ne "s/.*{ \"\(..\)\", TICODE_$code }.*/\1/p" \
|
||||
$tc | head -n 1)
|
||||
echo ".It Li \"$name\" Ta Sy \"\\&$code\" Ta Sy \"\\&$cap\""
|
||||
done
|
||||
}
|
||||
|
||||
boolcaps=`gentab $TERMH $TERMC flags`
|
||||
numcaps=`gentab $TERMH $TERMC nums`
|
||||
strcaps=`gentab $TERMH $TERMC strs`
|
||||
boolcaps=$(gentab $TERMH $TERMC flags)
|
||||
numcaps=$(gentab $TERMH $TERMC nums)
|
||||
strcaps=$(gentab $TERMH $TERMC strs)
|
||||
|
||||
echo ".\\\"DO NOT EDIT"
|
||||
echo ".\\\"Automatically generated from termcap.5.in"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $NetBSD: genterms,v 1.2 2010/03/03 12:09:49 roy Exp $
|
||||
# $NetBSD: genterms,v 1.3 2010/10/12 12:57:51 christos Exp $
|
||||
|
||||
# Copyright (c) 2010 The NetBSD Foundation, Inc.
|
||||
#
|
||||
@ -36,7 +36,7 @@ set -e
|
||||
|
||||
echo "/* \$NetBSD\$ */"
|
||||
echo "/* DO NOT EDIT"
|
||||
echo " * Regenerate by doing \`make compiled_terms\`"
|
||||
echo " * Regenerate by doing \`\`make compiled_terms''"
|
||||
echo " */"
|
||||
echo
|
||||
${TOOL_TIC} -Sx ${TERMINFO} ansi dumb vt100 vt220 wsvt25 xterm
|
||||
|
Loading…
Reference in New Issue
Block a user