On Mon, Mar 01, 1999 at 06:02:56PM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Amir" == Amir Karger <[EMAIL PROTECTED]> writes:
> 
> >> I realize that we risk shifting the deadline again and again this
> >> way.  We don't want that, so I hope somebody has the time to do the
> >> menu separator introduction TODAY!
> 
> Amir> Just tell me what text to replace with what.
> 
> I think that replacing "->" with "\n\SpecialChar \menuseparator\n"
> should be safe, provided that you add the correct \(ile|dir\) whatever
> just before.

Yes, sir!

Attached is menu.pl. You probably want to do something like:

cd lyxdoc
foreach i (*.lyx)
? menu.pl $i > $i.new
end

Then test the new files & write over the old ones if nec. (If you're feeling
VERY brave, change '-pw' in the first line to '-piw', which will overwrite
foo.lyx instead of creating a new file.

I think I found the menus correctly. If any "->" is found in the file that
doesn't seem to be part of a menu, the script will complain to STDERR and
say "Not changed: ..." where ... is the line that wasn't changed. 

-Amir

Reply via email to