#!/bin/sh set -eu verbose=false if [ "$#" -gt 0 ] then case "$1" in verbose | -v | --verbose) verbose=true shift ;; esac fi hideok= if command -v chronic > /dev/null then hideok=chronic fi if $verbose then hideok= fi $hideok cargo check --all-targets cargo clippy -q $hideok cargo build --all-targets $hideok cargo test $hideok cargo fmt -- --check $hideok find . -type f -name '*.py' ! -name test.py -exec black --check '{}' + $hideok subplot docgen jt.md --output jt.html $hideok subplot docgen jt.md --output jt.pdf $hideok subplot codegen jt.md --output test.py rm -f test.log $hideok python3 test.py --log test.log "$@" echo "Everything seems to be in order."