| Write the build in babashka, and pin the babashka 34832a8 nandi 18d ago | 1 | #!/bin/sh |
| 2 | #_( |
| 3 | exec "$(dirname "$0")/bb" "$0" "$@" |
| 4 | ) |
| 5 | |
| Take every jolt-native half from the release, and only from there a008d3b nandi 18d ago | 6 | ;; The app, with the native libraries `just lib` linked into build/lib on the |
| 7 | ;; loader path. Those are jolt-native's release, fetched by digest; nothing |
| 8 | ;; here looks for a checkout of it. |
| 9 | (require '[babashka.fs :as fs] |
| Write the build in babashka, and pin the babashka 34832a8 nandi 18d ago | 10 | '[babashka.process :as p]) |
| 11 | |
| 12 | (def root (str (fs/canonicalize (fs/path (fs/parent *file*) "..")))) |
| 13 | |
| 14 | (System/exit |
| 15 | (:exit @(apply p/process |
| 16 | {:inherit true |
| 17 | :extra-env {"LD_LIBRARY_PATH" |
| Take every jolt-native half from the release, and only from there a008d3b nandi 18d ago | 18 | (str (fs/path root "build" "lib"))}} |
| Write the build in babashka, and pin the babashka 34832a8 nandi 18d ago | 19 | "jolt" "-M:frq" *command-line-args*))) |