]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove the Perl text-to-dbm script, and replace with a reference to the
authorRich Bowen <rbowen@apache.org>
Tue, 21 Aug 2007 01:44:57 +0000 (01:44 +0000)
committerRich Bowen <rbowen@apache.org>
Tue, 21 Aug 2007 01:44:57 +0000 (01:44 +0000)
httxt2dbm utility.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@567902 13f79535-47bb-0310-9956-ffa450edef68

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

index c598d72aa7130463ffd6cecdb34044a443623838..e770b639518faf4f11a30ce6287704c9c8538503 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 d818c8935b6d238bd1877c3d7b4b0eb29fbc4f4e..ae34070c97b5a722b69b5d04184ec0759ebd6316 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>