Mail Archives: djgpp-workers/1998/10/02/06:00:21
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 -