]> granicus.if.org Git - apache/commitdiff
Remove the Perl txt-to-dbm translation script, and replace it
authorRich Bowen <rbowen@apache.org>
Tue, 21 Aug 2007 01:36:39 +0000 (01:36 +0000)
committerRich Bowen <rbowen@apache.org>
Tue, 21 Aug 2007 01:36:39 +0000 (01:36 +0000)
with a reference to the httxt2dbm utility.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@567899 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.html.en
docs/manual/mod/mod_rewrite.xml

index 89d9c91e0d7c3e3f2ef18cb936ef3dec1dd3ba07..7207c53f42a105fe58bf232042a47a7ee9b33d8e 100644 (file)
@@ -879,37 +879,12 @@ RewriteRule ^/(.*) http://${servers:dynamic}/$1 [P,L]
           fast lookups. The <em>type</em> can be sdbm, gdbm, ndbm, or
           db depending on <a href="../install.html#dbm">compile-time
           settings</a>.  If the <em>type</em> is omitted, the
-          compile-time default will be chosen. You can create such a
-          file with any DBM tool or with the following Perl
-          script.  Be sure to adjust it to create the appropriate
-          type of DBM.  The example creates an NDBM file.</p>
+          compile-time default will be chosen.</p>
 
-<div class="example"><pre>
-#!/path/to/bin/perl
-##
-##  txt2dbm -- convert txt map to dbm format
-##
-
-use NDBM_File;
-use Fcntl;
-
-($txtmap, $dbmmap) = @ARGV;
-
-open(TXT, "&lt;$txtmap") or die "Couldn't open $txtmap!\n";
-tie (%DB, 'NDBM_File', $dbmmap,O_RDWR|O_TRUNC|O_CREAT, 0644)
-  or die "Couldn't create $dbmmap!\n";
-
-while (&lt;TXT&gt;) {
-  next if (/^\s*#/ or /^\s*$/);
-  $DB{$1} = $2 if (/^\s*(\S+)\s+(\S+)/);
-}
-
-untie %DB;
-close(TXT);
-</pre></div>
+          <p>To create a dbm file from a source text file, use the <a href="../programs/httxt2dbm.html">httxt2dbm</a> utility.</p>
 
 <div class="example"><p><code>
-$ txt2dbm map.txt map.db
+$ httxt2dbm -i mapfile.txt -o mapfile.map
 </code></p></div>
         </li>
 
index 5d3a84519eee6a58cc7f3bd5cf01fc8d7e887886..6460fe1489e915610211605e38046b893f3d91bc 100644 (file)
@@ -409,39 +409,13 @@ RewriteRule ^/(.*) http://${servers:dynamic}/$1 [P,L]
           fast lookups. The <em>type</em> can be sdbm, gdbm, ndbm, or
           db depending on <a href="../install.html#dbm">compile-time
           settings</a>.  If the <em>type</em> is omitted, the
-          compile-time default will be chosen. You can create such a
-          file with any DBM tool or with the following Perl
-          script.  Be sure to adjust it to create the appropriate
-          type of DBM.  The example creates an NDBM file.</p>
+          compile-time default will be chosen.</p>
 
-<example>
-<pre>
-#!/path/to/bin/perl
-##
-##  txt2dbm -- convert txt map to dbm format
-##
-
-use NDBM_File;
-use Fcntl;
-
-($txtmap, $dbmmap) = @ARGV;
-
-open(TXT, "&lt;$txtmap") or die "Couldn't open $txtmap!\n";
-tie (%DB, 'NDBM_File', $dbmmap,O_RDWR|O_TRUNC|O_CREAT, 0644)
-  or die "Couldn't create $dbmmap!\n";
-
-while (&lt;TXT&gt;) {
-  next if (/^\s*#/ or /^\s*$/);
-  $DB{$1} = $2 if (/^\s*(\S+)\s+(\S+)/);
-}
-
-untie %DB;
-close(TXT);
-</pre>
-</example>
+          <p>To create a dbm file from a source text file, use the <a
+          href="../programs/httxt2dbm.html">httxt2dbm</a> utility.</p>
 
 <example>
-$ txt2dbm map.txt map.db
+$ httxt2dbm -i mapfile.txt -o mapfile.map
 </example>
         </li>