[gtk-doc] gtkdocize: sed does not fail if ther eis no match
- From: Stefan Kost <stefkost src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk-doc] gtkdocize: sed does not fail if ther eis no match
- Date: Mon, 4 Jan 2010 12:39:44 +0000 (UTC)
commit 01615f236e355160bbef636bc2c2b5f196f2957f
Author: Stefan Kost <ensonic users sf net>
Date: Mon Jan 4 14:39:19 2010 +0200
gtkdocize: sed does not fail if ther eis no match
This fixes grabbing the options from the configure macro, when there is no 2nd
option used.
gtkdocize.in | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtkdocize.in b/gtkdocize.in
index f425467..c7eeefd 100644
--- a/gtkdocize.in
+++ b/gtkdocize.in
@@ -36,8 +36,9 @@ 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])
- extra_options=`echo $macro | sed -e 's/^GTK_DOC_CHECK(\ *\(.*\))/\1/' | sed -e 's/^.*\,\ *\[\{0,1\}\([^]]*\)\]\{0,1\}\ *$/\1/'`
- if test $? -eq 0; then
+ params=`echo $macro | sed -e 's/^GTK_DOC_CHECK(\ *\(.*\))/\1/'`
+ if `echo $params | grep '^.*\,\ *\[\{0,1\}'`; then
+ extra_options=`echo $params | sed -e 's/^.*\,\ *\[\{0,1\}\([^]]*\)\]\{0,1\}\ *$/\1/'`
#echo >&2 "DEBUG: adding extra options [$extra_options] to [$*]"
set - $* $GTKDOCIZE_FLAGS $extra_options
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]