From a81b7a9737c0862b950b2a041108fbb168ff0f6a Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 2 Mar 2020 14:05:32 +0100 Subject: [PATCH] Add reflection script --- script/reflection.clj | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 script/reflection.clj diff --git a/script/reflection.clj b/script/reflection.clj new file mode 100755 index 00000000..56a1f21a --- /dev/null +++ b/script/reflection.clj @@ -0,0 +1,6 @@ +#!/usr/bin/env bb + +(require '[clojure.java.io :as io] '[clojure.string :as str] '[clojure.java.shell :refer [sh]]) +(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")))