Each of the eight command strings is stored as a defined string,
but they are simultaneously templates, too. They get sucked
into the output documents in a way that only the father of
AutoGen could ever love:-)
for ltmain.in:
[= (out-push-new ".lt.tmp") =][=
string[LINK_STRING].text =][=
(out-pop) =][=
INCLUDE ".lt.tmp" =]
and, also for ltstr.c:
tSCC z[= (string-capitalize! (get "str_name")) =]Cmd[] =
[= (out-push-new ".lt.tpl") =][=
text =][=
(out-pop)
(out-push-new ".lt.xxx") =][=
INCLUDE ".lt.tpl" =][=
(out-pop)
(kr-string (shell "cat .lt.xxx ; rm -f .lt.*")) =];
Now, common functions can be dropped into a template
library and used for generating both the bare script
and the script within a program.
It would elminate an extra push/emit/pop to put the
text into separate template files, but I want to
think about it a bit. I will probably do that later.
Cheers,
Bruce
_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool