Update of /cvsroot/leaf/devel/ccarr/devel/leaf-tools
In directory sc8-pr-cvs1:/tmp/cvs-serv11646
Modified Files:
cdb tmpl
Log Message:
Minor bug fixes for:
- bad quoting in tmpl is_directive and get_directive
- bad regex in tmpl FOREACH
- bad expr in cdb count
Thanks, Eric!
Index: cdb
===================================================================
RCS file: /cvsroot/leaf/devel/ccarr/devel/leaf-tools/cdb,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** cdb 13 Mar 2003 05:51:17 -0000 1.10
--- cdb 14 Mar 2003 05:29:04 -0000 1.11
***************
*** 27,31 ****
_count ()
{
! local fmt_string cmd count
if test "$1" = "$TREE"
--- 27,31 ----
_count ()
{
! local fmt_string cmd count=0
if test "$1" = "$TREE"
Index: tmpl
===================================================================
RCS file: /cvsroot/leaf/devel/ccarr/devel/leaf-tools/tmpl,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** tmpl 13 Mar 2003 05:21:32 -0000 1.9
--- tmpl 14 Mar 2003 05:29:04 -0000 1.10
***************
*** 58,64 ****
#
# a function to split a string on an arbitrary delimiter and set variables with
! # each successive element -- split DELIM STRING VAR1 [ VAR2 ] ...
#
! lsplit ()
{
local var
--- 58,64 ----
#
# a function to split a string on an arbitrary delimiter and set variables with
! # each successive element -- _split DELIM STRING VAR1 [ VAR2 ] ...
#
! _split ()
{
local var
***************
*** 127,134 ****
local alias array
! lsplit ' ' "$1" alias array
shift
! array=`set | sed -n "s/^\(${array}_[0-9]+\).*/\1/p" | sort -n | uniq `
# a helper variable so templates can count iterations
--- 127,134 ----
local alias array
! _split ' ' "$1" alias array
shift
! array=`set | sed -n "s/^\(${array}_[0-9][0-9]*\).*/\1/p" | sort -n | uniq `
# a helper variable so templates can count iterations
***************
*** 279,288 ****
is_directive ()
{
! get_directive $1 > /dev/null
}
is_end ()
{
! get_directive $1 END > /dev/null
}
--- 279,288 ----
is_directive ()
{
! get_directive "$1" > /dev/null
}
is_end ()
{
! get_directive "$1" END > /dev/null
}
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Leaf-cvs-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits