tricu

A lazy functional language based on Tree Calculus
Log | Files | Refs | README | LICENSE

build.sh (452B)


      1 #!/usr/bin/env bash
      2 set -euo pipefail
      3 cd "$(dirname "$0")/../.."
      4 # Compiler, editor sources and bundler all come from the locked Nix build.
      5 temporary=$(mktemp -d)
      6 trap 'rm -rf "$temporary"' EXIT
      7 nix build .#arboricxSiteJavaScript --out-link "$temporary/javascript"
      8 if [[ "${1:-}" == --check ]]; then
      9   diff -ru ext/demo-site/dist "$temporary/javascript/"
     10 else
     11   cp -rL "$temporary/javascript/." ext/demo-site/dist/
     12   chmod -R u+w ext/demo-site/dist
     13 fi