From: Doug Szumski Date: Sun, 4 Jun 2017 13:30:10 +0000 (+0100) Subject: misc: Strip off tag prefix from the pkg-config version X-Git-Tag: v1.6~38 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=90704b3d50a652d2c3778459ec79fb3961c292e4;p=sx%2Fsimavr.git 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'. --- 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