r4830: Auto commit for Debian build
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 6 May 2003 04:33:14 +0000 (04:33 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 6 May 2003 04:33:14 +0000 (04:33 +0000)
sql-create.lisp

index 45412f60048d704561305c8d98f25937fc4c6eb2..096d3d4d41765ebf91e6e852e111f6a05da8b1b9 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: sql-create.lisp,v 1.11 2003/05/06 02:21:30 kevin Exp $
+;;;; $Id: sql-create.lisp,v 1.12 2003/05/06 04:33:14 kevin Exp $
 ;;;;
 ;;;; This file, part of UMLisp, is
 ;;;;    Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
@@ -195,24 +195,23 @@ This is much faster that using create-umls-db-insert."
 
 (defun translate-file (filename extension files)
   "Translate a umls file into a format suitable for sql copy cmd"
-  (let ((path (umls-pathname filename extension))
+  (let ((output-path (umls-pathname filename extension))
        (input-files (mklist files)))
     (if (probe-file path)
        (format t "File ~A already exists: skipping~%" path)
        (dolist (input-file input-files)
-         (with-open-file (ostream :direction :output)
+         (with-open-file (ostream output-path :direction :output)
            (with-umls-file (line (umls-file-fil input-file))
              (umls-translate input-file line ostream)
              (princ #\newline ostream)))))))
 
 (defun translate-umls-file (file extension)
   "Translate a umls file into a format suitable for sql copy cmd"
-  (translate-file (umls-file-fil file) extension (umls-file-fil file)))
+  (translate-file (umls-file-fil file) extension file))
 
 (defun make-noneng-index-file (extension)
   "Make non-english index file"
-  (translate-file (find-umls-file "MRXW.NONENG") extension
-                 (noneng-lang-index-files)))
+  (translate-file "MRXW.NONEN" extension (noneng-lang-index-files)))
 
 (defun pg-copy-cmd (file extension)
   "Return postgresql copy statement for a file"