[WireGuard] RFE: A notion of VERSION (was: Debugging AllowedIps)
Jason A. Donenfeld
Jason at zx2c4.com
Wed Nov 16 18:39:45 CET 2016
The best I could come with:
> WIREGUARD_VERSION := $(shell parent_name=$$(readlink -f .. | sed -n 's:.*/[wW]ire[Gg]uard[a-z-]*-\([0-9.]\+\)$$:\1:p'); if [ -d ../.git ]; then echo "git-$$(git rev-parse --shor
t HEAD)"; elif [ -n $parent_name ]; then echo "$$parent_name"; else
echo "unknown"; fi)
Is this reliable, or is this garbage?
More information about the WireGuard
mailing list