Files
David YoungandClaude Opus 5.5 a88f09a1cd
check / lint-and-test (push) Failing after 4m21s
check / packages (push) Successful in 24s
Move radio's detection into radio-detect.sh, for HamPackServer to share
Finding the radios, their ports, sound cards and CM108 pins, probing them
and looking them up in radios.conf move, unchanged, from radio into
radio-detect.sh, which radio sources. It needs nothing else of HamPack
(it has parse_conf itself where lib.sh isn't loaded), so HamPackServer's
configure can keep a copy. The messages that named radio's commands take
them from RADIO_PROGRAM, RADIO_CONFIGURE and RADIO_CM108_ACCESS, whose
defaults say what they said before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 14:13:18 -07:00

27 lines
822 B
Makefile

# HamPack development tasks
# make lint - shellcheck every script
# make test - run the bats tests in tests/
# make check-packages - check every package and Flatpak in packages.conf can
# still be installed (needs the network; run `pacman -Sy` first)
# make hooks - run `make lint test` before each commit
SCRIPTS := install.sh update.sh lib.sh install-binaries.sh install-compiled.sh \
install-flatpaks.sh install-windows-apps.sh patch-potacat.sh hampackcheck hampackremove radio radio-detect.sh \
smoketest/setup smoketest/health smoketest/lib.sh $(wildcard smoketest/scenarios/*.sh)
.PHONY: check lint test check-packages hooks
check: lint test
lint:
shellcheck -x $(SCRIPTS)
test:
bats tests/
check-packages:
./hampackcheck packages
hooks:
git config core.hooksPath .githooks