nandi/frqpublic Fork 0
cb6465fccc6da348e4ea2d1530b2b36ad97e451a
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 cb6465fccc6da348e4ea2d1530b2b36ad97e451a · nandi · 18d ago
lib.bb · 30 lines · 1.2 KBBlitzBasic Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#_(
exec "$(dirname "$0")/bb" "$0" "$@"
)

;; Both native libraries: libvidya (the tree ABI glimmer-vidya binds) and
;; libjoltmoq (the AV media plane). One workspace, one target directory.
;;
;; A sibling jolt-native checkout wins, so anyone working on the two repos
;; together builds what they are editing; everyone else gets a clone of the
;; gitlab repo under .jolt-native, pinned to the commit deps.edn takes
;; glimmer-vidya from — one place to bump, rather than a second sha here.
(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*) ".."))))
(def url "https://gitlab.com/nandithebull/jolt-native.git")
(def sha (paths/dep-sha root "https://gitlab.com/nandithebull/jolt-native"))
(def jolt-native (paths/jolt-native root))

;; Already here whenever the sibling checkout exists, since that is what
;; jolt-native then points at.
(when-not (fs/directory? jolt-native)
  (p/shell "git" "clone" url jolt-native)
  (p/shell {:dir jolt-native} "git" "checkout" "--detach" sha))

(p/shell {:dir jolt-native} "just" "build")