head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.44 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.42 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.40 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.38 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.36 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.34 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.32 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.30 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.28 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.26 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.24 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.22 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.20 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.18 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.16 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.14 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.12 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.10 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.8 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.6 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.4 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.2 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.4.0.8 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.6 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.4 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.2 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2-base:1.2 netbsd-1-4-PATCH002:1.1.1.1 comdex-fall-1999:1.1.1.1 netbsd-1-4-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2005.01.20.20.35.24; author bad; state dead; branches; next 1.4; 1.4 date 2003.12.15.21.22.41; author wiz; state Exp; branches; next 1.3; 1.3 date 2003.12.15.20.18.33; author bad; state Exp; branches; next 1.2; 1.2 date 2000.04.27.14.44.28; author bad; state dead; branches; next 1.1; 1.1 date 99.05.17.16.58.30; author bad; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.05.17.16.58.30; author bad; state Exp; branches; next ; desc @@ 1.5 log @Upgrade jdb to version 1.13. Changes since 1.12: - NEW: jdb added to the freebsd ports tree maintainer: larse@@isi.edu - BUG FIX: properly handle trailing spaces when data must be numeric (ex. dbstats with -FS, see test dbstats_trailing_spaces) Fix from Ning Xu . - NEW: dbcolize error message improved (bug report from Terrence Brannon), and list format documented in the README. - NEW: cgi_to_db convergs CGI.pm-format storage to jdb list format - BUG FIX: handle numeric synonyms for column names in dbcol properly - ENHANCEMENT: "talking about columns" section added to README. Lack of documentation pointed out by Lars Eggert. - CHANGE: dbformmail now defaults to using Mail ("Berkeley Mail") to send mail, rather than sendmail (sendmail is still an option, but mail doesn't require running as root) - NEW: on platforms that support it (i.e., with perl 5.8), jdb works fine with unicode - NEW: dbfilevalidate: check a db file for some common errors @ text @$NetBSD: patch-aa,v 1.4 2003/12/15 21:22:41 wiz Exp $ --- dblib.pl.orig Mon Oct 28 23:46:40 2002 +++ dblib.pl Mon Dec 15 21:04:54 2003 @@@@ -330,7 +330,7 @@@@ sub force_numeric { my($value, $ignore_non_numeric) = @@_; - if ($value =~ /^[-+]?[0-9]+(.[0-9]+)?(e[-+0-9]+)?$/) { + if ($value =~ /^\s*[-+]?[0-9]+(.[0-9]+)?(e[-+0-9]+)?\s*$/) { return $value + 0.0; # force numeric } else { if ($ignore_non_numeric) { @ 1.4 log @Remove first chunk of this patch -- it only brings trouble and is not useful. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2003/12/15 20:18:33 bad Exp $ @ 1.3 log @Update jdb to 1.12 plus the patch for the problem with trailing spaces in dbstats from Heidemann's web page. Changes since 1.7 apart from bugfixes: 1.12, 30-Oct-02 - NEW: dbcolmultiscale - NEW: dbcol has -r option for "relaxed error checking" - NEW: dbcolneaten has new -e option to strip end-of-line spaces - NEW: dbrow finally has a -v option to negate the test - NEW: db_to_html_table: simple conversion to html tables - NEW: dblib now has a function dblib_text2html() that will 1.11, 2-Nov-01 - NEW: dbcolneaten now supports "field specifiers" that allow some control over how wide columns should be - OPTIMIZATION: dbsort now tries hard to be filesystem cache-friendly 1.10, 10-Apr-01 - NEW: dbstats now includes a -S option to optimize work on pre-sorted data (inspired by code contributed by Haobo Yu) 1.9, 6-Nov-00 - NEW: dbfilesplit, split a single input file into multiple output files. 1.8, 28-Jun-00 - NEW: dbrowuniq now optionally checks for uniqueness only on certain fields - NEW: dbrowsplituniq makes one pass through a file and splits it into separate files based on the given fields - NEW: converter for "crl" format network traces - NEW: anywhere you use arbitrary code (like dbroweval), _last_foo now maps to the last row's value for field _foo. - OPTIMIZATION: comment processing slightly changed so that dbmultistats now is much faster on files with lots of comments. @ text @d1 1 a1 1 $NetBSD$ a4 9 @@@@ -2,7 +2,7 @@@@ # # dblib.pl -# Copyright (C) 1991-1998 by John Heidemann +# Copyright (C) 1991-2002 by John Heidemann # $Id: dblib.pl,v 1.39 2002/10/28 22:46:40 johnh Exp $ # # This program is distributed under terms of the GNU general @ 1.2 log @Upgrade JDB to 1.7. From the change log: 1.7, 5-Jan-00 - NEW: dbcolize now detects and rejects lines that contain embedded copies of the field separator - NEW: configure tries harder to prevent people from improperly configuring/installing jdb - NEW: tcpdump_to_db converter (incomplete) - NEW: tabdelim_to_db converter: from spreadsheet tab-delimited files to db - BUG FIX: dbjoin used to produce incorrect output if there were extra, unmatched values in the 2nd table. - BUG FIX: the sample commands in the usage strings now all should explicitly include the source of data (typically from "cat foo.jdb |"). - DOCUMENTATION BUG FIX: dbcolmovingstats had incorrect sample output. 1.6, 24-May-99 - NEW: dbsort, dbstats, dbmultistats now run in constant memory (using tmp files if necessary) - NEW: dbcolmovingstats does moving means over a series of data - NEW: dbcol has a -v option to get all columns except those listed - NEW: dbmultistats does quartitles and medians - NEW: dbstripextraheaders now also cleans up bogus comments before the fist header - BUG FIX: dbcolneaten works better with double-space-separated data @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 1999/05/17 16:58:30 bad Exp $ d3 3 a5 3 --- Makefile.in.orig Thu Jun 25 18:47:37 1998 +++ Makefile.in Mon May 17 17:55:50 1999 @@@@ -22,7 +22,7 @@@@ d7 8 a14 4 # Where should the support files go? # LIBDIR=/usr/local/lib/jdb -LIBDIR=@@mydatadir@@ +LIBDIR=@@mydatadir@@/jdb d16 7 a22 2 ###################################################################### # No need to change things below this line. @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of John Heidemann's JDB flat-ASCII database manipulation package. @ text @@