On Sat, 27 Sep 2014 08:29:25 -0400 [email protected] wrote:
> i think this was sent to me personally by mistake (i had reply-to set). it
> seems part of the conversation, and nothing seems confidential, so i am
> posting
> my reply to tech@
>
> especially as it is relevant to those who may want to know this later.
>
> On Sat, 27 Sep 2014 05:13:42 -0600 (MDT)
> > Your diff is wrong. the script exists to avoid the long wrapping line.
>
> ok, but also in 'list2sh.awk' is:
>
> printf("(cd ${TARGDIR}; tic -C -x -r -e %s
> ${UTILS}/../../share/termtypes/termtypes.master | sed -e '/^#.*/d' -e
> '/^$$/d' > %s)\n",
>
> wouldn't that have the same issue?
>
thought i might make this an exercise, perhaps in futilty! no matter.
if the point is to avoid long wrapping lines...
--- list2sh.awk.orig Sun Sep 28 09:22:02 2014
+++ list2sh.awk Mon Sep 29 04:52:43 2014
@@ -84,11 +84,8 @@ $1 == "SPECIAL" {
next;
}
$1 == "TERMCAP" {
-# tic -r flag may generate harmless warning about pccon+base:
-# "terminal 'pccon+base': enter_reverse_mode but no exit_attribute_mode"
printf("echo '%s'\n", $0);
- printf("(cd ${TARGDIR}; tic -C -x -r -e %s
${UTILS}/../../share/termtypes/termtypes.master | sed -e '/^#.*/d' -e '/^$$/d'
> %s)\n",
- $2, $3);
+ printf("(cd ${TARGDIR}; sh $UTILS/maketerm.sh %s %s)\n", $2, $3);
next;
}
$1 == "SCRIPT" {
this patch simply duplicates the above line used to call 'maketz.sh', and
instead calls 'maketerm.sh', adding the args as in the original TERMCAP line.
/usr/src/distrib/miniroot/maketerm.sh:
#!/bin/ksh
_utildir=${0%/*}
_termlist=$1
_termcap=$2
# tic -r flag may generate harmless warning about pccon+base:
# "terminal 'pccon+base': enter_reverse_mode but no exit_attribute_mode"
tic -C -x -r -e $_termlist ${_utildir}/../../share/termtypes/termtypes.master \
| sed -e '/^#.*/d' -e '/^$$/d' \
> $_termcap
$UTILS is used in the original call to 'maketz.sh', and was copied to the
'maketerm.sh' line. since $UTILS is already used in the call, i use $0 to get
it for the 'termtypes.master' db path instead of passing it.