From 1d8cbc9f21d3d6b375bceaf207ebdc2c7075f701 Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 31 May 2015 02:48:40 -0300 Subject: configure: bsd sed doesn't support \+ without -r, use * instead Tested in openbsd 5.6, which does have sed -r (unlike Mac OS X) but it needs -r to recognize + at all. The previous commit did fix enough to make it 'work' with the git describe output as version string, the only problem was that the sed didn't match in bsds and mac os x. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 46a3d2ea..c7607f54 100755 --- a/configure +++ b/configure @@ -78,7 +78,7 @@ get_version() { timestamp=$(cd $srcdir; git show -s --format=%ci HEAD | sed 's/ .*$//; s/-//g') branch=$(cd $srcdir; git rev-parse --abbrev-ref HEAD) - search="\(.\+\)-\([0-9]\+\)-\(g[0-9a-f]\+\)" + search='\(.*\)-\([0-9]*\)-\(g[0-9a-f]*\)' replace="\1+$timestamp+$branch+\2-\3-git" describe=$(cd $srcdir; git describe --long --tags 2>/dev/null) -- cgit v1.2.3