1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
|
Description: rename dbfdump to dbf_dump following the rename in Debian
(due to #274792)
Origin: vendor
Author: gregor herrmann <gregoa@debian.org>
Forwarded: not-needed
Last-Update: 2016-03-07
--- a/README
+++ b/README
@@ -48,7 +48,7 @@
my $table = new XBase 'table.dbf';
my @data = $table->get_record(0);
- The distribution also includes a dbfdump script that prints
+ The distribution also includes a dbf_dump script that prints
the content of the table in readable form.
@@ -75,7 +75,7 @@
native XBase engines produce data incompatible with this
module.
- Man pages for XBase, DBD::XBase, dbfdump, XBase::Index and
+ Man pages for XBase, DBD::XBase, dbf_dump, XBase::Index and
XBase::SDBM are included, examples of little scripts can also
be found in eg/ directory of the distribution. Read the DBI
man page for DBI specific issues, and the XBase::FAQ page.
--- a/bin/dbfdump.PL
+++ b/bin/dbfdump.PL
@@ -33,7 +33,7 @@
) or exit;
if (defined $options{'version'}) {
- print "This is dbfdump version $XBase::VERSION.\n";
+ print "This is dbf_dump version $XBase::VERSION.\n";
exit;
}
@@ -44,7 +44,7 @@
if (@ARGV == 0 or defined $options{'help'}) {
die <<'EOF';
-Usage: dbfdump [ options ] files
+Usage: dbf_dump [ options ] files
where the options specify
--rs output record separator (default newline)
--fs output field separator (default colon)
@@ -129,11 +129,11 @@
=head1 NAME
-dbfdump - Dump the record of the dbf file
+dbf_dump - Dump the record of the dbf file
=head1 FORMAT
- dbfdump [options] files
+ dbf_dump [options] files
where options are
@@ -153,15 +153,15 @@
=head1 SYNOPSIS
- dbfdump -fields id,msg table.dbf
- dbfdump -fs=' : ' table
- dbfdump --nomemo file.dbf
+ dbf_dump -fields id,msg table.dbf
+ dbf_dump -fs=' : ' table
+ dbf_dump --nomemo file.dbf
- ssh user@host 'cat file.dbf.gz' | gunzip - | dbfdump -
+ ssh user@host 'cat file.dbf.gz' | gunzip - | dbf_dump -
=head1 DESCRIPTION
-Dbfdump prints to standard output the content of dbf files listed. By
+Dbf_dump prints to standard output the content of dbf files listed. By
default, it prints all fields, separated by colons, one record on
a line. The output record and column separators can be changed by
switches on the command line. You can also ask only for some fields to
@@ -183,7 +183,7 @@
=head1 SEE ALSO
-perl(1); XBase(3)
+perl(1); XBase(3pm); index_dump(1p)
=cut
--- a/bin/indexdump.PL
+++ b/bin/indexdump.PL
@@ -80,15 +80,15 @@
=head1 NAME
-indexdump - Show the content of the index file
+index_dump - Show the content of the index file
=head1 FORMAT
- indexdump [options] file [ tag ]
+ index_dump [options] file [ tag ]
where options are
- --debug output record separator (default newline)
+ --debug set debug level
--type specifies the num/date/char type of the index
--start defines the value to start dump from
--n prints also the total number of records
@@ -96,12 +96,12 @@
=head1 SYNOPSIS
- indexdump rooms.cdx FACILITY
- indexdump --debug=14 --start=Dub rooms.cdx ROOMNAME
+ index_dump rooms.cdx FACILITY
+ index_dump --debug=14 --start=Dub rooms.cdx ROOMNAME
=head1 DESCRIPTION
-Indexdump prints to standard output the content of the index file.
+Index_dump prints to standard output the content of the index file.
The type of the index is one of those supported by the XBase::Index
Perl module (cdx, idx, ntx, ndx, mdx).
@@ -121,7 +121,7 @@
=head1 SEE ALSO
-perl(1); XBase::Index(3)
+perl(1); XBase::Index(3pm); dbf_dump(1p)
=cut
--- a/eg/use_index
+++ b/eg/use_index
@@ -77,7 +77,7 @@
my $cur = $table->prepare_select_with_index(
[ "cust.cdx", 'addr' ], 'field1', 'field2');
-There is a script indexdump that does the dump for you.
+There is a script index_dump that does the dump for you.
If you have an compound index, with an expression instead of just
plain field name, chances are that XBase.pm won't be able to recognize
--- a/lib/XBase.pm
+++ b/lib/XBase.pm
@@ -1346,7 +1346,7 @@
$table->dump_records("fs" => " | ", "rs" => " <-+\n",
"fields" => [ "id", "msg" ]);'
-Also note that there is a script dbfdump(1) that does the printing.
+Also note that there is a script dbf_dump(1) that does the printing.
=head2 Errors and debugging
@@ -1432,7 +1432,7 @@
=head1 SEE ALSO
perl(1); XBase::FAQ(3); DBD::XBase(3) and DBI(3) for DBI interface;
-dbfdump(1)
+dbf_dump(1)
=cut
--- a/lib/XBase/FAQ.pod
+++ b/lib/XBase/FAQ.pod
@@ -174,11 +174,11 @@
to your script and you will see that it's not B<DBD::XBase> problem.
-=item The B<XBase.pm/dbfdump> stops after reading I<n> records ...
+=item The B<XBase.pm/dbf_dump> stops after reading I<n> records ...
... why doesn't it read all I<10 x n> records?
-Check if the file isn't truncated. C<dbfdump -i file.dbf> will tell
+Check if the file isn't truncated. C<dbf_dump -i file.dbf> will tell
you the expected number of records and length of one record, like
Filename: file.dbf
@@ -190,7 +190,7 @@
Num fields: 40
So the expected length of the file is at least I<1313 + 65 * 1117>. If
-it's shorter, you've got damaged file and B<XBase.pm/dbfdump> only
+it's shorter, you've got damaged file and B<XBase.pm/dbf_dump> only
reads as much rows as it can find in the dbf.
=item How is this B<DBD::XBase> related to B<DBD::ODBC>?
--- a/lib/XBase/Index.pm
+++ b/lib/XBase/Index.pm
@@ -1668,17 +1668,18 @@
=head2 Testing your index file (and XBase::Index)
-You can test your index using the indexdump script in the main
-directory of the DBD::XBase distribution (I mean test XBase::Index
-on correct index data, not testing corrupted index file, of course ;-)
+You can test your index using the index_dump script (I mean test
+XBase::Index on correct index data, not testing corrupted index file,
+of course ;-)
+
Just run
- ./indexdump ~/path/index.ndx
- ./indexdump ~/path/index.cdx tag_name
+ index_dump ~/path/index.ndx
+ index_dump ~/path/index.cdx tag_name
or
- perl -Ilib ./indexdump ~/path/index.cdx tag_name
+ perl -Ilib `which index_dump` ~/path/index.cdx tag_name
if you haven't installed this version of XBase.pm/DBD::XBase yet. You
should get the content of the index file. On each row, there is
@@ -1695,18 +1696,18 @@
The index formats usually distinguish between numeric and character
data. Some of the file formats include the information about the type
-in the index file, other depend on the dbf file. Since with indexdump
+in the index file, other depend on the dbf file. Since with index_dump
we only look at the index file, you may need to specify the -type
-option to indexdump if it complains that it doesn't know the data
+option to index_dump if it complains that it doesn't know the data
type of the values (this is the case with cdx at least). The possible
values are num, char and date and the call would be like
- ./indexdump -type=num ~/path/index.cdx tag_name
+ index_dump -type=num ~/path/index.cdx tag_name
(this -type option may not work with all index formats at the moment
-- will be fixed and patches always welcome).
-You can use C<-ddebug> option to indexdump to see how pages are
+You can use C<-ddebug> option to index_dump to see how pages are
fetched and decoded, or run debugger to see the calls and parsing.
=head2 Using the index files to speed up searches in dbf
--- a/new-XBase
+++ b/new-XBase
@@ -395,7 +395,7 @@
$table->dump_records("fs" => " | ", "rs" => " <-+\n",
"fields" => [ "id", "msg" ]);'
-Also note that there is a command line script dbfdump(1) that does
+Also note that there is a command line script dbf_dump(1) that does
the printing.
=head1 Writing the data
@@ -595,7 +595,7 @@
XBase::FAQ(3); XBase::Index(3);
DBD::XBase(3) and DBI(3) for DBI interface;
-dbfdump(1); perl(1)
+dbf_dump(1); perl(1)
=cut
|