On Thu, Nov 17, 2016 at 2:40 AM, Jason A. Donenfeld <[email protected]> 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.

Attachment: Makefile
Description: Binary data

_______________________________________________
WireGuard mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/wireguard

Reply via email to