obol

[root] / build.sh

334B

raw
#!/bin/sh
# obol - build script
# see LICENSE for copyright and license details.

die() {
	printf "error: %s\n" "$1" >&2
	exit 1
}

check_cmd() {
	command -v "$1" >/dev/null 2>&1 || die "$1 not found"
}

check_cmd nim

printf "building obol...\n"

nim c \
	-d:release \
	--opt:size \
	obol.nim || die "build failed"

printf "done.\n"