nandi/frqpublic Fork 0
b52a754c9c45fddcc0d11b447ef821ad752138d5
Commits
Clone
git clone https://git.rickub.com/nandi/frq.git
git clone ssh://git@rickub.com/nandi/frq.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Write the build in babashka, and pin the babashka 34832a8 · on b52a754c9c45fddcc0d11b447ef821ad752138d5 · nandi · 18d ago
run.bb · 21 lines · 717 BBlitzBasic Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#_(
exec "$(dirname "$0")/bb" "$0" "$@"
)

;; The app. The native libraries are wherever jolt-native is — a sibling
;; checkout, or the clone `just lib` leaves under .jolt-native.
(require '[babashka.classpath :as cp])
(cp/add-classpath (str (babashka.fs/parent *file*)))
(require '[frq.paths :as paths]
         '[babashka.fs :as fs]
         '[babashka.process :as p])

(def root (str (fs/canonicalize (fs/path (fs/parent *file*) ".."))))

(System/exit
 (:exit @(apply p/process
                {:inherit true
                 :extra-env {"LD_LIBRARY_PATH"
                             (str (fs/path (paths/jolt-native root) "target" "release"))}}
                "jolt" "-M:frq" *command-line-args*)))