[gtk-doc] gtkdocize: drop text behind the macro
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] gtkdocize: drop text behind the macro
- Date: Wed, 14 Oct 2015 06:13:51 +0000 (UTC)
commit 1ced0d70d09e7f4c60a5837b4573ef11e231bade
Author: Stefan Sauer <ensonic users sf net>
Date: Wed Oct 14 08:10:35 2015 +0200
gtkdocize: drop text behind the macro
This can be a comment or another macro. In neither case we want to accidentially
pick up options from that part.
Fixes #756368
gtkdocize.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdocize.in b/gtkdocize.in
index 73e9be9..50a041d 100644
--- a/gtkdocize.in
+++ b/gtkdocize.in
@@ -57,7 +57,7 @@ if test $no_configure_found -eq 0; then
macro=`grep '^GTK_DOC_CHECK' $configure 2>/dev/null`
if test $? -eq 0; then
# GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
- params=`echo $macro | sed -e 's/^GTK_DOC_CHECK(\ *\(.*\))/\1/'`
+ params=`echo $macro | sed -e 's/^GTK_DOC_CHECK(\ *\(.*\)).*$/\1/'`
if echo $params | grep -q '^.*\,\ *\[\{0,1\}'; then
extra_options=`echo $params | sed -e 's/^.*\,\ *\[\{0,1\}\([^]]*\)\]\{0,1\}\ *$/\1/'`
#echo >&2 "DEBUG: adding extra options [$extra_options] to [$*]"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]