From: Stefano Zacchiroli Date: Thu, 26 Dec 2002 15:38:55 +0000 (+0000) Subject: Dbm dumper for dbs created using Dbm ocaml module X-Git-Tag: v0_3_99~121 X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=commitdiff_plain;h=0f1696d5c0601f3070b9c1bb1f32dd82fceb033b Dbm dumper for dbs created using Dbm ocaml module --- diff --git a/helm/http_getter/tools/dump_db.ml b/helm/http_getter/tools/dump_db.ml new file mode 100755 index 000000000..3a64f1dd6 --- /dev/null +++ b/helm/http_getter/tools/dump_db.ml @@ -0,0 +1,6 @@ +#!/usr/bin/ocamlrun /usr/bin/ocaml +#use "topfind";; +#require "dbm";; +let db = Dbm.opendbm Sys.argv.(1) [ Dbm.Dbm_rdonly ] 0 in +Dbm.iter (Printf.printf "%s: %s\n") db; +Dbm.close db