nandi/frqpublic Fork 0
5c40e758d011ed38612fa0d8335a591dc3dd18b3
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.

justfile · 46 lines · 1.8 KBMakefile Blame HistoryRaw
A freeq client in jolt, as glimmer components on Vidya 4719d6f nandi 20d ago1set shell := ["bash", "-euo", "pipefail", "-c"]
2
Find the sibling checkouts from a worktree too cd7e9d2 nandi 19d ago3# Sibling checkouts, found relative to the *main* checkout rather than to this
4# directory. In a git worktree they are not the same place: the justfile sits
Take both native libraries from one place a66d1c1 nandi 19d ago5# at .claude/worktrees/<name>, so "../jolt-native" from here would be
6# .claude/worktrees/jolt-native, which is nothing. `--git-common-dir` is the one
Find the sibling checkouts from a worktree too cd7e9d2 nandi 19d ago7# thing that answers the same in a worktree as it does in the checkout it came
8# from.
9checkout := parent_directory(`git rev-parse --path-format=absolute --git-common-dir`)
Take glimmer-vidya from gitlab, so a stranger can build this 5c40e75 nandi 19d ago10
11# jolt-native holds both shared objects. A sibling checkout wins, so anyone
12# working on the two repos together builds what they are editing; everyone else
13# gets a clone of the gitlab repo under .jolt-native, pinned to the same commit
14# deps.edn takes glimmer-vidya from.
15jolt_native_url := "https://gitlab.com/nandithebull/jolt-native.git"
16jolt_native_sha := "70072e8e48ad396caeab6f6bd18b999cf449ec8f"
17jolt_native := `
18 checkout="$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")"
19 if [ -d "$checkout/../jolt-native" ]; then
20 cd "$checkout/../jolt-native" && pwd
21 else
22 echo "$checkout/.jolt-native"
23 fi
24`
A freeq client in jolt, as glimmer components on Vidya 4719d6f nandi 20d ago25
26default:
27 @just --list
28
Take both native libraries from one place a66d1c1 nandi 19d ago29# Both native libraries: libvidya (the tree ABI glimmer-vidya binds) and
30# libjoltmoq (the AV media plane). One workspace, one target directory.
Take glimmer-vidya from gitlab, so a stranger can build this 5c40e75 nandi 19d ago31lib: fetch
Calls f31ad3d nandi 19d ago32 cd {{jolt_native}} && just build
33
Take glimmer-vidya from gitlab, so a stranger can build this 5c40e75 nandi 19d ago34# Clone jolt-native at the pinned commit, unless it is already here — which it
35# is whenever the sibling checkout exists, since that is what jolt_native then
36# points at.
37[private]
38fetch:
39 if [ ! -d {{quote(jolt_native)}} ]; then \
40 git clone {{jolt_native_url}} {{quote(jolt_native)}}; \
41 cd {{quote(jolt_native)}} && git checkout --detach {{jolt_native_sha}}; \
42 fi
43
Take both native libraries from one place a66d1c1 nandi 19d ago44# The app.
A freeq client in jolt, as glimmer components on Vidya 4719d6f nandi 20d ago45run *args:
Take both native libraries from one place a66d1c1 nandi 19d ago46 LD_LIBRARY_PATH="{{jolt_native}}/target/release" jolt -M:frq {{args}}