blob: e86c17c9079f75963e4df9d25e8a5eb39d33c425 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# Cross-compile the calendar file servers for 9front.
#
# One library, one binary per protocol. They install as ical/fs,
# caldav/fs and so on -- named for the protocol they speak, because a
# backend is a protocol and protocols span data types.
#
# Go 1.24.x is broken on plan9/amd64 (spinbit mutex panic before main),
# so pin a known-good toolchain.
set -e
: ${GOTOOLCHAIN:=go1.27.0}
: ${GOOS:=plan9}
: ${GOARCH:=amd64}
export GOTOOLCHAIN GOOS GOARCH
cd "$(dirname "$0")"
mkdir -p bin
for c in cmd/*; do
n=$(basename "$c")
go build -o "bin/$n" "./$c"
done
ls -l bin
|