X-Git-Url: https://git.distorted.org.uk/~mdw/zone/blobdiff_plain/f41a87836c2f5228cfb3e5d07560f629c061e81f..ab87c7bf4977fe6b89e8e6d1a45c300e341d366a:/frontend.lisp diff --git a/frontend.lisp b/frontend.lisp index b920aa9..5241be0 100644 --- a/frontend.lisp +++ b/frontend.lisp @@ -13,18 +13,18 @@ ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 2 of the License, or ;;; (at your option) any later version. -;;; +;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. -;;; +;;; ;;; You should have received a copy of the GNU General Public License ;;; along with this program; if not, write to the Free Software Foundation, ;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. (defpackage #:zone.frontend - (:use #:common-lisp #:optparse #:zone) + (:use #:common-lisp #:optparse #:net #:zone) (:export #:main)) (in-package #:zone.frontend) @@ -34,15 +34,14 @@ (define-program :version "1.0.0" :usage "ZONEDEF..." :help "Generates BIND zone files from Lisp descriptions." - :options (options help-opts + :options (options help-options "Output options" (#\z "zone" (:arg "NAME") (list opt-zones) "Write information about zone NAME."))) (defun main () (with-unix-error-reporting () - (let ((seq 54) - (files nil)) + (let ((files nil)) (unless (option-parse-try (do-options () (nil (rest) @@ -51,10 +50,10 @@ (setf files rest)))) (die-usage)) (dolist (f files) - (let ((*package* (make-package (format nil "zone.scratch-~A" - (incf seq)) - :use '(#:common-lisp #:zone)))) - (load f :verbose nil :print nil :if-does-not-exist :error))) + (let ((*package* (make-package "ZONE.SCRATCH" + :use '(#:common-lisp #:net #:zone)))) + (load f :verbose nil :print nil :if-does-not-exist :error) + (delete-package *package*))) (zone-save opt-zones)))) ;;;----- That's all, folks --------------------------------------------------