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 :cxml)
10
(defun parse_file (fn)
12
(cxml:parse-file fn (cxml-xmls:make-xmls-builder))))
14
(defun parse_iteration (fn i)
17
(parse_file (concatenate 'string "../xml.tmp/" (write-to-string i) ".xml"))))
20
(defvar iterations NIL)
23
(if (> (length *ARGS*) 0)
24
(setf iterations (parse-integer (first *ARGS*)))
27
(if (> (length *ARGS*) 1)
28
(setf xmlfn (second *ARGS*))
31
(parse_iteration xmlfn 0)
32
;(pprint (list "Number of Iterations" iterations))
35
(dotimes (i iterations)
36
(parse_iteration xmlfn (+ i 1))))
37
(dotimes (i iterations)
38
(parse_iteration xmlfn (+ i 1))))