babashka/script/reflection.clj
Michiel Borkent 648ca2479f minor
2020-04-04 16:34:57 +02:00

9 lines
349 B
Clojure
Executable file

#!/usr/bin/env bb
(require '[clojure.java.io :as io]
'[clojure.java.shell :refer [sh]]
'[clojure.string :as str])
(def version (str/trim (slurp (io/file "resources" "BABASHKA_VERSION"))))
(sh "lein" "with-profiles" "+reflection" "run")
(io/copy (io/file "reflection.json") (io/file (str "babashka-" version "-reflection.json")))