~motiejus/bazel-zig-cc

ref: ea14601308340df78dd1d508caa322f174fd4582 bazel-zig-cc/getpath -rwxr-xr-x 253 bytes
ea146013 — Motiejus Jakštys fix workspace name #2 4 months ago
                                                                                
1
2
3
4
5
6
7
8
#!/bin/bash

# in builds.sr.ht, 'bazel' binary is stored in $HOME.
exec env PATH=$PATH:$HOME \
    bazel aquery \
    --platforms "$1" "$2" 2>/dev/null | \
    awk "/action 'GoLink/{f=1};/Outputs: / &&f{print;exit}" | \
    awk -F'\\[|\\]' '{print $2}'