CI / check (push) Successful in 1m34s
A swayidle-shaped daemon: `present <cmd>` runs when a Bluetooth LE device comes within an RSSI threshold, `absent <secs> <cmd>` once nobody has for that long. Near means 3 of the last 5 advertisements at or above -58 dBm by default; --calibrate prints the raw stream so the threshold is picked at the installed screen, not guessed. Nothing is stored: a few seconds of samples in memory, counted. Packaged for the [uhhm] registry from the checkout itself, built natively per arch on tag by Gitea Actions, with the version checked across Cargo.toml, PKGBUILD and the tag. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
14 lines
581 B
Bash
Executable File
14 lines
581 B
Bash
Executable File
#!/bin/bash
|
|
# check-version [tag-version]: PKGBUILD pkgver, Cargo.toml version and, when
|
|
# given, the tag must all be the same string. Version lives in Cargo.toml;
|
|
# PKGBUILD mirrors it so makepkg needs no VCS pkgver().
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
cargo=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1)
|
|
pkg=$(sed -n 's/^pkgver=//p' PKGBUILD)
|
|
[ "$cargo" = "$pkg" ] || { echo "Cargo.toml $cargo != PKGBUILD pkgver $pkg" >&2; exit 1; }
|
|
if [ $# -gt 0 ]; then
|
|
[ "$1" = "$cargo" ] || { echo "tag $1 != version $cargo" >&2; exit 1; }
|
|
fi
|
|
echo "version $cargo"
|