Introspection of system version

Javier Olaechea pirata at gmail.com
Fri Jun 17 16:04:40 UTC 2016


Hi Frank,
   You are looking for asdf:component-version. See for example how
Shuffletron
<https://github.com/ahefner/shuffletron/blob/39c7d8af6577e9cbd39da656598f98c6eb6c3f14/src/global.lisp#L6>
does
it



On Fri, Jun 17, 2016 at 10:59 AM, Frank <fau at riseup.net> wrote:

> Hello,
>
> In the system definition we can specify a version; for example:
>
> (asdf:defsystem :foo
>   :description "foo utility"
>   :license     "LGPL"
>
>   :version (:read-file-form "VERSION")
>
>   :serial t
>   :components ((:file "foo")))
>
> For example I can query the system license like this:
>   (asdf:system-licence (asdf:find-system "foo"))
>
> How can I query the version of system foo at run time?
>
> Thanks,
> Frank
>
>
>


-- 
"I object to doing things that computers can do." — Olin Shivers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/asdf-devel/attachments/20160617/323d197b/attachment.html>


More information about the asdf-devel mailing list