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

Kalin KOZHUHAROV me.kalin at gmail.com
Wed Nov 16 19:18:43 CET 2016


On Thu, Nov 17, 2016 at 2:40 AM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
> 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)
>

I couldn't make it work as meant to, fails (=prints empty string) when
I rename .git to .git- for example.

Here is it on 2 lines.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 314 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20161117/eb1df90a/attachment.obj>


More information about the WireGuard mailing list