summaryrefslogtreecommitdiff
path: root/graphics/asymptote/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/Makefile.in')
-rw-r--r--graphics/asymptote/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/asymptote/Makefile.in b/graphics/asymptote/Makefile.in
index f7afa261c3..a6705f9536 100644
--- a/graphics/asymptote/Makefile.in
+++ b/graphics/asymptote/Makefile.in
@@ -107,8 +107,8 @@ REVISION = "const char *REVISION="
last = $(shell head -1 revision.cc | sed -e 's/.*\"\(.*\)\";/\1/')
usinggit = $(shell if test -d ".git"; then echo yes; fi)
ifeq ($(usinggit),yes)
- revision = $(shell LC_ALL="C" git describe --long | sed -e 's/git//' \
- | sed -e 's/-g.*//')
+ revision = $(shell LC_ALL="C" git describe --long | \
+ sed -e 's/git-\([0-9]*\)-g.*/-\1/' | sed -e 's/-0-g.*//')
else
revision = @VERSION@
endif