[gnome-doc-utils] Working around buggy OpenSolaris awk
- From: Shaun McCance <shaunm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-doc-utils] Working around buggy OpenSolaris awk
- Date: Sat, 8 Aug 2009 16:04:53 +0000 (UTC)
commit 81337211f27e5b93c4a1101d6e79e4ff5e974a74
Author: Shaun McCance <shaunm gnome org>
Date: Sat Aug 8 11:03:16 2009 -0500
Working around buggy OpenSolaris awk
http://bugzilla.gnome.org/show_bug.cgi?id=590694#c13
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=1236105
rng/mallard/Makefile.am | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/rng/mallard/Makefile.am b/rng/mallard/Makefile.am
index e0fdf94..8082080 100644
--- a/rng/mallard/Makefile.am
+++ b/rng/mallard/Makefile.am
@@ -12,8 +12,13 @@ mallard.rnc: $(wildcard $(top_srcdir)/doc/mallard/C/*.page)
xsltproc $(srcdir)/mal2rnc.xsl $$file; \
done > mallard.rnc
+# http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=1236105
+# This bug in gawk on solaris causes rnc2rng to fail it mysterious and
+# spectacular ways. See comment #13 here for more details:
+# http://bugzilla.gnome.org/show_bug.cgi?id=590694
+# Unsetting LANG for the awk call works around this.
mallard.rng: mallard.rnc rnc2rng.awk
- $(GDU_AWK) -f $(srcdir)/rnc2rng.awk mallard.rnc > $ tmp || ( rm -f $ tmp && exit 1 )
+ LANG= $(GDU_AWK) -f $(srcdir)/rnc2rng.awk mallard.rnc > $ tmp || ( rm -f $ tmp && exit 1 )
xmllint --format $ tmp | \
sed -e 's/^ //' \
-e 's/ xmlns/\n xmlns/g' \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]