aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-05-31 02:48:40 -0300
committerdequis <dx@dxzone.com.ar>2015-05-31 02:48:40 -0300
commit1d8cbc9f21d3d6b375bceaf207ebdc2c7075f701 (patch)
treeba322d8c7d0f8fac912918a153c8831081dba1e2
parentc984ee32df0b4875b1d14da3a33244edf1033fe6 (diff)
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.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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)