From a22a830b4706c5e15fcf4561165fd10706ca9a54 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Mon, 16 Dec 2013 00:33:43 +0100 Subject: Strip a leading 'v' from the git tag when generating the version number --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f8c8086..5af0eb2 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Makefile for mkinitcpio -VERSION = $(shell if test -f VERSION; then cat VERSION; else git describe | sed 's/-/./g'; fi) +VERSION = $(shell if test -f VERSION; then cat VERSION; else git describe | sed 's/-/./g;s/^v//;'; fi) DIRS = \ /usr/bin \ -- cgit v1.2.3-24-g4f1b