]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
Makefile: remove v prefix
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 8 Oct 2019 14:48:18 +0000 (16:48 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 8 Oct 2019 14:48:18 +0000 (16:48 +0200)
Makefile

index 842e069b456e6317ca962d632b77345b05c1a434..47f22d6bd0c1900c942416ef0c564979e98660e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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