Skip to content

Instantly share code, notes, and snippets.

@dkochmanski
Created October 11, 2022 18:00
Show Gist options
  • Save dkochmanski/acc8f0057a9c77a231b7fd25deca329f to your computer and use it in GitHub Desktop.
Save dkochmanski/acc8f0057a9c77a231b7fd25deca329f to your computer and use it in GitHub Desktop.
asdf auto module
;; Written by me in 2018, recovered from https://github.com/sjl/rosalind/blob/ef6194d94c8fe85b53fd0a7811f7ba85c4809bb0/rosalind.asd#L1-L9
(defclass auto-module (module) ())
(defmethod component-children ((self auto-module))
(mapcar (lambda (p) (make-instance 'cl-source-file :type "lisp"
:pathname p
:name (pathname-name p)
:parent (component-parent self)))
(directory-files (component-pathname self)
(make-pathname :directory nil :name *wild* :type "lisp"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment