update-repos/justfile
Thorsten Schubert ec8bcfd6bc
All checks were successful
/ build (push) Successful in 11s
Add systemd service detection
2024-05-02 15:15:36 +02:00

25 lines
589 B
Makefile

default:
just build
help:
just --list
build:
go build -ldflags="-s -w -X main.VERSION=$(git describe --tags --long)" .
watch:
#!/usr/bin/env bash
while :; do
inotifywait -q -e create,modify,delete --exclude '\.git' --recursive {{justfile_directory()}} \
| while read -r directory events filename; do
if [[ $events =~ "ISDIR" ]]; then
break
elif [[ $filename =~ \.go$ ]]; then
printf "[%s]: %s%s\n" "$events" "$directory" "$filename"
just build || tput bel
fi
done
done
clean:
git clean -fxd