From: Joel Rosdahl Date: Thu, 10 Jun 2010 07:53:24 +0000 (+0200) Subject: Improve formatting of git revision info X-Git-Tag: v3.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83eb86a1728567760d997d8bcccd2f6cb235bdde;p=thirdparty%2Fccache.git Improve formatting of git revision info --- diff --git a/configure.ac b/configure.ac index 151cf0af2..3fc3e79e2 100644 --- a/configure.ac +++ b/configure.ac @@ -290,7 +290,7 @@ cat config.h >>config.h.tmp echo '#endif' >>config.h.tmp mv config.h.tmp config.h -version=`(git describe --dirty 2>/dev/null || echo vunknown) | cut -b 2-` +version=`(git describe --dirty 2>/dev/null || echo vunknown) | sed -e 's/v//' -e 's/-/+/' -e 's/-/_/g'` echo "const char CCACHE_VERSION@<:@@:>@ = \"$version\";" >version.c mkdir -p .deps diff --git a/dev.mk.in b/dev.mk.in index 37763a3f7..7c936aec4 100644 --- a/dev.mk.in +++ b/dev.mk.in @@ -8,7 +8,7 @@ XSLTPROC = xsltproc MANPAGE_XSL = /etc/asciidoc/docbook-xsl/manpage.xsl version := \ - $(shell (git describe --dirty 2>/dev/null || echo vunknown) | cut -b 2-) + $(shell (git describe --dirty 2>/dev/null || echo vunknown) | sed -e 's/v//' -e 's/-/+/' -e 's/-/_/g') dist_dir = ccache-$(version) dist_archive_tar_bz2 = ccache-$(version).tar.bz2