1
#! /usr/bin/clisp -C -q -q
2
; Should be called from root account once to generate binaries for libraries
4
(load #p"/usr/share/common-lisp/source/asdf/asdf.lisp")
5
(push #p"/usr/share/common-lisp/systems/" asdf:*central-registry*)
6
;(asdf:oos 'asdf:load-op :closures-common)
7
(asdf:oos 'asdf:load-op :cxml)
11
(defun parse_file (fn)
13
(cxml:parse-file fn (cxml-dom:make-dom-builder))))
15
(defun parse_iteration (fn i)
18
(parse_file (concatenate 'string "../xml.tmp/" (write-to-string i) ".xml"))))
21
(defvar iterations NIL)
24
(if (> (length *ARGS*) 0)
25
(setf iterations (parse-integer (first *ARGS*)))
28
(if (> (length *ARGS*) 1)
29
(setf xmlfn (second *ARGS*))
32
(parse_iteration xmlfn 0)
33
;(pprint (list "Number of Iterations" iterations))
36
(dotimes (i iterations)
37
(parse_iteration xmlfn (+ i 1))))
38
(dotimes (i iterations)
39
(parse_iteration xmlfn (+ i 1))))