Dan Nicholson wrote:

> Well, it's not in there just for fun.  ed, apparently, does things a
> bit differently when it receives the q command.  It quits where it is
> and gives you the file back.  sed, though, will q at the line your on
> and drop all remaining lines.  This is a problem since only the first
> soname_spec needs to be matched.  You can't just quit the sed script
> after the first match because you lose the rest of the file.

OK, I see now.

How about shortening it up some:

sed -i '/^soname_spec.*/{
i # X.Org hack to match monolithic Xaw SONAME
i xorglibxawname="libXaw"
s/libname/xorglibxawname/
:a;{N;ba}
}' libtool

My testing shows it gives exactly the same output as the ed script.
It may be worthwhile passing this upstream, but the real fix would be to
create the libtool file correctly in the first place.

  -- Bruce



-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to