| git.druid.rocks | index | druid520 | site | build.sh |
build.sh
#!/bin/sh
# renders *.btft into html/. run from the repo root.
set -e
# resolved through PATH, not a hardcoded install location.
btf="${BTF:-btf}"
[ -f style.btfs ] || { echo "err: style.btfs missing." >&2; exit 1; }
command -v "$btf" >/dev/null 2>&1 || { echo "err: $btf not found on \$PATH (see git://git.druid.rocks/druid520/btf.git)." >&2; exit 1; }
rm -rf html
mkdir -p html/.well-known
cp .well-known/security.txt html/.well-known/security.txt
cp LICENSE html/LICENSE
"$btf" -f .