Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libterminfo replace `` with $(). Hopefully with enough e...
details: https://anonhg.NetBSD.org/src/rev/fe940c80d9be
branches: trunk
changeset: 757999:fe940c80d9be
user: christos <christos%NetBSD.org@localhost>
date: Tue Oct 12 12:57:51 2010 +0000
description:
replace `` with $(). Hopefully with enough examples around people will
forget about ``.
diffstat:
lib/libterminfo/genhash | 9 +++++----
lib/libterminfo/genman | 12 ++++++------
lib/libterminfo/genterms | 4 ++--
3 files changed, 13 insertions(+), 12 deletions(-)
diffs (82 lines):
diff -r f3eafb58a1a5 -r fe940c80d9be lib/libterminfo/genhash
--- a/lib/libterminfo/genhash Tue Oct 12 12:49:27 2010 +0000
+++ b/lib/libterminfo/genhash Tue Oct 12 12:57:51 2010 +0000
@@ -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 @@
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 @@
#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>
diff -r f3eafb58a1a5 -r fe940c80d9be lib/libterminfo/genman
--- a/lib/libterminfo/genman Tue Oct 12 12:49:27 2010 +0000
+++ b/lib/libterminfo/genman Tue Oct 12 12:57:51 2010 +0000
@@ -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 @@
$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"
diff -r f3eafb58a1a5 -r fe940c80d9be lib/libterminfo/genterms
--- a/lib/libterminfo/genterms Tue Oct 12 12:49:27 2010 +0000
+++ b/lib/libterminfo/genterms Tue Oct 12 12:57:51 2010 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index