]> git.meshlink.io Git - catta/blobdiff - service-type-database/build-db.in
get rid of a lot of old svn cruft
[catta] / service-type-database / build-db.in
index c27eb90b6215ab83702658a810c24135db7f32c0..4cda425374a79198f294e9aa53ae6b0a3710da05 100755 (executable)
@@ -1,7 +1,5 @@
 #!@PYTHON@
 # -*-python-*-
-# $Id$
-
 # This file is part of avahi.
 #
 # avahi is free software; you can redistribute it and/or modify it
@@ -19,7 +17,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 # USA.
 
-import dbm, sys
+import @DBM@, sys
 
 if len(sys.argv) > 1:
     infn = sys.argv[1]
@@ -29,12 +27,9 @@ else:
 if len(sys.argv) > 2:
     outfn = sys.argv[2]
 else:
-    outfn = infn
-
-if outfn.endswith(".db"):
-    outfn = outfn[:-3]
+    outfn = infn + ".db"
 
-db = dbm.open(outfn, "n")
+db = @DBM@.open(outfn, "n")
 
 for ln in file(infn, "r"):
     ln = ln.strip(" \r\n\t")