okami.mom/albedo
git clone https://git.nkp.pet/okami.mom/albedo
b585313
main
1#!/usr/bin/env bash 2# The default profile is the commit check; review and audit are opt-in. 3set -euo pipefail 4root =" $( cd " $( dirname " $ 0" ) /.." && pwd ) " 5project =" $ root " 6scratch ="" 7trap 'if [[ -n "$scratch" ]]; then rm -rf "$scratch"; fi' EXIT 8profile ="" 9case " ${ 1 :-} " in 10--review) 11profile ="glinter-review.toml" 12shift 13 ;; 14--all) 15profile ="glinter-all.toml" 16shift 17 ;; 18esac 19if [[ -n$ profile ]];then 20scratch =" $( mktemp -d ) " 21project =" $ scratch " 22cp " $ root /test/manual/ $ profile " " $ project /gleam.toml" 23ln -s " $ root /src" " $ project /src" 24ln -s " $ root /test" " $ project /test" 25fi 26glinter --project " $ project " " $ @"