[WireGuard] RFE: A notion of VERSION (was: Debugging AllowedIps)

Jason A. Donenfeld Jason at zx2c4.com
Wed Nov 16 18:40:30 CET 2016


Trying again with no line breaks:

> 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 --short HEAD)"; elif [ -n $parent_name ]; then echo "$$parent_name"; else echo "unknown"; fi)


More information about the WireGuard mailing list