Files
stfs/Hydrunfile
2021-12-20 01:41:09 +01:00

17 lines
428 B
Bash
Executable File

#!/bin/bash
set -e
# Install native dependencies
apt update
apt install -y curl
# Install bagccgop
curl -L -o /tmp/bagccgop "https://github.com/pojntfx/bagccgop/releases/latest/download/bagccgop.linux-$(uname -m)"
install /tmp/bagccgop /usr/local/bin
# Build
GOFLAGS='-gccgoflags=-static' bagccgop -x '(linux/alpha|linux/mipsle)' -j1 -b stfs -r 'make depend' -m 'libsqlite3-dev' -p 'make build/stfs DST=$DST' -d out
exit 0