Browse Source

Makefile: remove v prefix

Jason A. Donenfeld 10 months ago
parent
commit
222f0f8000
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Makefile

+ 1
- 1
Makefile View File

@@ -10,7 +10,7 @@ MAKEFLAGS += --no-print-directory
10 10
 generate-version-and-build:
11 11
 	@export GIT_CEILING_DIRECTORIES="$(realpath $(CURDIR)/..)" && \
12 12
 	tag="$$(git describe --dirty 2>/dev/null)" && \
13
-	ver="$$(printf 'package device\nconst WireGuardGoVersion = "%s"\n' "$$tag")" && \
13
+	ver="$$(printf 'package device\nconst WireGuardGoVersion = "%s"\n' "$${tag#v}")" && \
14 14
 	[ "$$(cat device/version.go 2>/dev/null)" != "$$ver" ] && \
15 15
 	echo "$$ver" > device/version.go && \
16 16
 	git update-index --assume-unchanged device/version.go || true

Loading…
Cancel
Save