-#! /bin/sh
-":"; ### -*-lisp-*-
-":"; CL_SOURCE_REGISTRY=$(pwd)/build/src/:
-":"; ASDF_OUTPUT_TRANSLATIONS=$(pwd)/src:$(pwd)/build/src
-":"; export CL_SOURCE_REGISTRY ASDF_OUTPUT_TRANSLATIONS
-":"; exec cl-launch -X -l "sbcl cmucl" -s asdf -i "(sod-exports::main)" -- "$0" "$@" || exit 1
+#! /usr/bin/runlisp -Lsbcl,cmucl
+;;; -*-lisp-*-
(cl:defpackage #:sod-exports
(:use #:common-lisp
;; Load the target system so that we can poke about in it.
(cl:in-package #:sod-exports)
(eval-when (:compile-toplevel :load-toplevel :execute)
- (mapc #'asdf:load-system '(:sod :sod-frontend)))
+ (asdf:clear-configuration)
+ (mapc #'asdf:load-system '(:sod :sod/frontend)))
;;;--------------------------------------------------------------------------
;;; Miscelleneous utilities.
(push :c-type-spec things))
(when (specialized-on-p #'sod:expand-c-type-form 0 symbol)
(push :c-type-form things))
+ (when (specialized-on-p #'sod:expand-c-storage-specifier 0 symbol)
+ (push :c-storage-spec things))
+ (when (specialized-on-p #'sod:expand-c-storage-specifier-form 0 symbol)
+ (push :c-storage-form things))
(when (specialized-on-p #'sod-parser:expand-parser-spec 1 symbol)
(push :parser-spec things))
(when (specialized-on-p #'sod-parser:expand-parser-form 1 symbol)
(push :parser-form things))
- (when (get symbol 'optparse::opthandler)
+ (when (get symbol 'optparse::opthandler-function)
(push :opthandler things))
- (when (get symbol 'optparse::optmacro)
+ (when (get symbol 'optparse::optmacro-function)
(push :optmacro things))
(nreverse things)))
(let* ((sod (asdf:find-system "sod"))
(parser-files (files (by-name sod "parser")))
(utilities (by-name sod "utilities"))
- (sod-frontend (asdf:find-system "sod-frontend"))
+ (sod-frontend (asdf:find-system "sod/frontend"))
(optparse (by-name sod "optparse"))
(frontend (by-name sod-frontend "frontend"))
(sod-files (set-difference (files sod) (list optparse utilities))))
;;; Command-line use.
(defun main ()
- "Write a report to `doc/SYMBOLS'."
- (with-open-file (*standard-output* #p"doc/SYMBOLS"
- :direction :output
- :if-exists :supersede
- :if-does-not-exist :create)
- (report-project-symbols)))
-
-#+interactive (main)
+ "Write a report to *standard-output*."
+ (report-project-symbols))
+
+#+runlisp-script (main)
;;;----- That's all, folks --------------------------------------------------