1 Apr 2004 01:07
Re: Wether to apply changes from newxml to official profile??
Reinhard <bookreader <at> gmx.com>
2004-03-31 23:07:21 GMT
2004-03-31 23:07:21 GMT
Thanks for your attention. On Wednesday 31 March 2004 11:42, Jamie Bennett wrote: > Reinhard wrote on 31 March 2004 09:47 > > > Get a Makefile from the book, is really trivial, compared with > > the command translation. But I'm on the way - and only few commands > > pending for workout. > > All though not an ideal solution, have you looked at Vasilli's YAALFS > implementation? (http://vassilidzuba.nerim.net/yaalfs.html) It could > convert nALFS profiles into bash commands. You could probaby reverse it? Noop - cause IMHO the xml-side is always well structured and in order, so it's quite easy to transform xml to anything you want. Shellscripts are not at all well structured and they are seldom ordered. Quite often tricky variants are used, so if you want to use the full bandwidth of alfs profile syntax, you have to check for most system calls, whether you could write it in alfs-syntax or whether you have to (fallback to) use *execute*. Just an example (not sure, whether from lfs or blfs): I dumped all sed-usages to a file to investigate, what could be written with *search_replace* and from over 30 sed-variants, only one could be written with *search_replace* - well, without human intervention and that is my focus. If I have to edit a single file from the generated profiles (except the config files), I would consider my work as useless.(Continue reading)
)
I'll check it out.
Kevin, is your "todo"-list or roadmap publicly available?
I've lot of questions related to nALFS ...
only few here:
- exists something like a screenplay for nALFS?
- the current handler for search_replace uses "selfwritten" replaces. This
handler could not search for patterns. How about to change it to use the
system's sed?
- also I like to repeat my question about filename-handling for search/
replace:
Don't know, why most occurences of sed don't use the -i option but copy the
file away and use different files for in and out (may be cause of
sideeffects) - but sometimes sed is used with 2 really different files. One
to read from and the other to write to.
What do you think about the possibility to be able to specify such in an nALFS
profile? (i.e. something like *infile* and *outfile*)
tbc...
Kind regards
RSS Feed