Module Name:    src
Committed By:   christos
Date:           Tue Oct 12 12:57:51 UTC 2010

Modified Files:
        src/lib/libterminfo: genhash genman genterms

Log Message:
replace `` with $(). Hopefully with enough examples around people will
forget about ``.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libterminfo/genhash
cvs rdiff -u -r1.3 -r1.4 src/lib/libterminfo/genman
cvs rdiff -u -r1.2 -r1.3 src/lib/libterminfo/genterms

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libterminfo/genhash
diff -u src/lib/libterminfo/genhash:1.6 src/lib/libterminfo/genhash:1.7
--- src/lib/libterminfo/genhash:1.6	Wed Mar  3 07:09:49 2010
+++ src/lib/libterminfo/genhash	Tue Oct 12 08:57:51 2010
@@ -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>

Index: src/lib/libterminfo/genman
diff -u src/lib/libterminfo/genman:1.3 src/lib/libterminfo/genman:1.4
--- src/lib/libterminfo/genman:1.3	Wed Mar  3 07:09:49 2010
+++ src/lib/libterminfo/genman	Tue Oct 12 08:57:51 2010
@@ -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"

Index: src/lib/libterminfo/genterms
diff -u src/lib/libterminfo/genterms:1.2 src/lib/libterminfo/genterms:1.3
--- src/lib/libterminfo/genterms:1.2	Wed Mar  3 07:09:49 2010
+++ src/lib/libterminfo/genterms	Tue Oct 12 08:57:51 2010
@@ -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

Reply via email to