I'd like to arrange the version automatically from `config/auto-version'
but can't figure out a good way yet.
;; Option definitions.
(define-program
:help "Process SOD input files to produce (e.g.) C output."
- :version "0.1.0"
+ :version *sod-version*
:usage "SOURCES..."
:options (options
(help-options :short-version #\V)
#:sod-utilities
#:sod-parser))
+(cl:in-package #:sod)
+
+(export '*sod-version*)
+(defvar *sod-version* (asdf:component-version (asdf:find-system "sod"))
+ "The version of the SOD translator system, as a string.")
+
;;;----- That's all, folks --------------------------------------------------
(defsystem sod
;; Boring copyright stuff.
- :version "1.0.0"
+ :version "0.1.0"
:author "Mark Wooding"
:license "GNU General Public License, version 2 or later"