summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2013-12-16 00:33:43 +0100
committerThomas Bächler <thomas@archlinux.org>2013-12-16 00:33:43 +0100
commita22a830b4706c5e15fcf4561165fd10706ca9a54 (patch)
tree8ce2803d23264bd3074e635510bd3ce0a254b2b5 /Makefile
parentee04cff9d96761c77826cad41f1f22d08577e8b7 (diff)
downloadmkinitcpio-a22a830b4706c5e15fcf4561165fd10706ca9a54.tar.gz
mkinitcpio-a22a830b4706c5e15fcf4561165fd10706ca9a54.tar.xz
Strip a leading 'v' from the git tag when generating the version numberv16
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 \