sdr-testing/justfile

14 lines
293 B
Makefile

default: gitCommit
rootTest := if shell("id -u") == "0" {error("Cannot run as root")} else {""}
gitCommit:
{{rootTest}}
git -P diff -U0
# date_msg:=$(date)
git add .
if ! git diff-index --quiet HEAD; then git commit -m "{{shell("date")}}" ; fi
uvrun: gitCommit
uv run main.py