www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/10/02/06:00:21

Message-ID: <3614CE10.3C10FE91@gmx.net>
Date: Fri, 02 Oct 1998 11:58:56 -0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Organization: none provided
X-Mailer: Mozilla 4.01 [de] (Win95; I)
MIME-Version: 1.0
To: Andris Pavenis <pavenis AT lanet DOT lv>
CC: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>,
djgpp-workers <djgpp-workers AT delorie DOT com>
Subject: Re: rhide-1.4.6
X-Priority: 3 (Normal)
References: <199809291843 DOT UAA23946 AT ieva06 DOT lanet DOT lv>

Andris Pavenis wrote :
> 
> I tried 'make install' with rhide-1.4.6. Problem is that makeinfo
> (latest version 3.12, date 980916) fails to generate html files. Also

This is not a problem with makeinfo but with sed (are you using
sed 3.02??).

Here follows now a test case where I don't know if it is a bug
in sed or in the sed-script (maybe Eli can help) or in the
DJGPP regex function(s).

BTW: I tested this with the latest sed 3.02.

File test.in:
-------START----
@menu
* Introduction::
@end menu

-------END------
File test.sed
-------START----
s/@end menu/@end_menu/

/^@menu/,/^@end_menu/ {
    /^@menu/ {
        N
	s/\n/!!!!!/
    }
    s/^\* /@mitem{/
    s/,/\\,/g
    s/::/,/
    s/^[ 	]\+/&/
    s/^$//
    s/^\@\(mitem\|end_menu\)/}\
@\1/
    s/^\(@menu\)!!!!!\* /\1\
@mitem{/
}
-------END------

Output from "sed -f test.sed test.in":
-------START----
@menu
@mitem{Introduction,
@end_menu

-------END------

Output from "gsed -f test.sed test.in":
-------START----
@menu
@mitem{Introduction,
}
@end_menu

-------END------

Robert
-- 
******************************************************
* email:   Robert Hoehne <robert DOT hoehne AT gmx DOT net>     *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019