#!/usr/bin/env bash set -uo pipefail # when executed as executable file in "git for windows" bash some things won't work, so always run with prefixed command if [[ $# -ge 1 && $1 == "clean" ]]; then rm -r target/; fi javac -Xlint -d target/ src/**/*.java;