From 90704b3d50a652d2c3778459ec79fb3961c292e4 Mon Sep 17 00:00:00 2001 From: Doug Szumski Date: Sun, 4 Jun 2017 14:30:10 +0100 Subject: [PATCH] misc: Strip off tag prefix from the pkg-config version For example, before this change the version would be set as 'tag:v1.5'. After this change it will be 'v1.5'. --- simavr/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simavr/Makefile b/simavr/Makefile index 0e1d443..35ee448 100644 --- a/simavr/Makefile +++ b/simavr/Makefile @@ -18,8 +18,7 @@ SHELL := ${shell which bash} SIMAVR_VERSION := ${shell \ - { git log -1 --tags --simplify-by-decoration --pretty="format:%d"|\ - sed -e 's/[\(\) ]//g'; } || \ + git describe --abbrev=0 --tags || \ echo "unknown" } SIMAVR_REVISION = 2 -- 2.39.5