I've created an JIRA issue for this:
http://dev.clojure.org/jira/browse/CLJS-402
and added a patch for the build script:
---
Auto-generation from the build script of version_autogen.clj and version_autogen.cljs files
that both define the cljs.version-autogen/clojurescript-version
with the current version info for both the clj and cljs environments
---
Feels a little crude, but it works…:
---
user=> (require 'cljs.version-autogen)
nil
user=> cljs.version-autogen/*clojurescript-version*
{:minor 0, :incremental 1514, :major 0}
user=> (run-repl-listen)
"Type: " :cljs/quit " to quit"
ClojureScript:cljs.user> (load-namespace 'cljs.version-autogen)
ClojureScript:cljs.user> cljs.version-autogen/*clojurescript-version*
{:incremental 1514, :major 0, :minor 0}
ClojureScript:cljs.user>
---
Any alternative approaches that would be more elegant?
-FrankS.