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>
27 lines
822 B
Makefile
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
|