Use POSIX sed invocation
authorRobin Green <greenrd@greenrd.org>
Sun, 3 Jul 2011 09:18:17 +0000 (10:18 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 3 Jul 2011 11:32:51 +0000 (08:32 -0300)
Fixes broken build on DragonFly BSD

Signed-off-by: Robin Green <greenrd@greenrd.org>
lib/Makefile.local

index fe429207c2d482c01b150093d227e525323f0c6c..88d8debca8e19600cf86cded2ae27cf77ea93e84 100644 (file)
@@ -76,7 +76,7 @@ $(dir)/$(LIBNAME): $(libnotmuch_modules) notmuch.sym
 
 notmuch.sym: lib/notmuch.h
        printf "{\nglobal:\n" > notmuch.sym
-       sed  -n 's/^\s*\(notmuch_[a-z_]*\)\s*(.*/\t\1;/p' $< >> notmuch.sym
+       sed  -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/'"`printf "\t"`"'\1;/p' $< >> notmuch.sym
        printf "local: *;\n};\n" >> notmuch.sym
 
 $(dir)/$(SONAME): $(dir)/$(LIBNAME)