Adriaan van Os wrote:
Frank Heckenbach wrote:
Darwin source can be found at <http://www.opensource.apple.com/darwinsource/>, e.g. <http://www.opensource.apple.com/darwinsource/tarballs/apsl/text_cmds-68.tar.gz> (free registration is required) or (if that's a problem) <http://www.microbizz.nl/text_cmds-68.tar.gz>
The last link gives me a zero-length file.
Oops, fixed that now.
Thanks. -- Apparently it doesn't like ";" after labels and branches, and wants a newline. So try this: --- p/utils/mk-t-inc.orig Sun Apr 20 15:38:25 2008 +++ p/utils/mk-t-inc Sun Apr 20 15:41:16 2008 @@ -72,6 +72,11 @@ 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;bloop;};/^DEFTREECODE/{s,/\*.*\*/,,;s/["'"'"']x["'"'"'].*/'"'x', 0)/;p;}" +} | sed -ne ':loop + /\\$/{ + N + bloop + } + /^DEFTREECODE/{s,/\*.*\*/,,;s/["'"'"']x["'"'"'].*/'"'x'"', 0)/;p;}' } > "$2" || { rm -f "$2"; false; }
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.
I don't know. You could try reporting this to the GNU sed developers. It might be an equally "trivial" issue ... Frank -- Frank Heckenbach, f.heckenbach@fh-soft.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8