`radio` lists each radio plugged into USB: its serial ports, the sound card that came with it (the same USB device, or behind the radio's own hub), and its model and Hamlib model number. Icoms are recognised by their USB serial number. `radio detect --probe` asks the others with the CAT ID; command or Icom's CI-V transceiver ID, at the usual baud rates, on ports no other program has open; `radio probe PORT` asks one port. It drops DTR and RTS as soon as a port opens. The radios it knows are in radios.conf. update.sh links ~/.local/bin/radio to the clone, unless a different radio is already there, and adds you to uucp, which owns serial ports on Arch. hampackremove removes the link, and takes you out of uucp only if HamPack put you in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
806 B
Makefile
27 lines
806 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 \
|
|
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
|