diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-08 16:48:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-08 16:48:18 +0200 |
commit | 222f0f8000e80ffff3253fac9990ee61f4e64398 (patch) | |
tree | 2bbe1d5e829af8d68426397e5b91a0f283e7dc31 | |
parent | 1f146a5e7ad9081c79026339c2ad82f357743d66 (diff) |
Makefile: remove v prefix
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ MAKEFLAGS += --no-print-directory generate-version-and-build: @export GIT_CEILING_DIRECTORIES="$(realpath $(CURDIR)/..)" && \ tag="$$(git describe --dirty 2>/dev/null)" && \ - ver="$$(printf 'package device\nconst WireGuardGoVersion = "%s"\n' "$$tag")" && \ + ver="$$(printf 'package device\nconst WireGuardGoVersion = "%s"\n' "$${tag#v}")" && \ [ "$$(cat device/version.go 2>/dev/null)" != "$$ver" ] && \ echo "$$ver" > device/version.go && \ git update-index --assume-unchanged device/version.go || true |