Frank Heckenbach wrote:
So it's the last "sed" invocation in the script that fails.
There may be a missing semicolon. At least I thought sed requires a ";" (or newline) before "}", and some examples I've just checked seem to suggest so, so I'm a bit surprised GNU sed works without it.
Otherwise I don't see any of the typical problems I've had with other seds here.
--- p/utils/mk-t-inc.orig Sat Apr 19 03:03:24 2008 +++ p/utils/mk-t-inc Sat Apr 19 03:03:57 2008 @@ -72,5 +72,5 @@ cat "$GCCDIR/tree.def" echo 'DEFTREECODE (LAST_AND_UNUSED_C_TREE_CODE, "unused", '"'x', 0)" sed -e '/#ifdef EGCS/,${/#ifdef EGCS/d;/#else/,/#endif/d;}' "$GCCDIR/p/p-tree.def" -} | sed -ne ':loop;/\$/{N;b loop};/^DEFTREECODE/{s,/*.**/,,;s/["'"'"']x["'"'"'].*/'"'x', 0)/;p;};/^#/p" +} | sed -ne ':loop;/\$/{N;b loop;};/^DEFTREECODE/{s,/*.**/,,;s/["'"'"']x["'"'"'].*/'"'x', 0)/;p;};/^#/p" } > "$2" || { rm -f "$2"; false; }
This doesn't seem to make a difference for creating p/utils/tree.inc with the Darwin system sed.
I noticed, by the way, another peculiarity of the Darwin system sed. GNU-sed 4.1.5 doesn't build, GNU-sed 4.1.4 does ! So, you need to build and install GNU-sed 4.1.4, before you can build GNU-sed 4.1.5.
Regards,
Adriaan van Os