Mail Archives: djgpp-workers/2000/02/29/09:42:56
[ No Cc: to zippo-workers; onelist.com won't let me :-( ]
On Tue, 29 Feb 2000, Martin Stromberg wrote:
> > The DJGPP Software Manifest (DSM) for the package would have a dependency
> > on bash (whatever version), so that the user cannot install the package
> > until bash has been installed.
>
> And how do you install bash and its changes to DJGPP.ENV?
That's why I mentioned a *builtin* sed- or awk-like machinery. The
installer has to be able to modify DJGPP.ENV on its own, without help of
any of the other tools (or those tools have to become part of the
installer).
And of course, bash itself won't help much in modifying the contents of
DJGPP.ENV. It has some file-modification capabilities ('read' ; 'echo >>
file' and such), but that isn't very helpful here. It's just too
complicated to use, IMHO. We'ld need something like more along the lines
of 'sed', i.e. a scriptable file editor which can be told to
replace all lines starting with the [bison] one, until the next
one starting with '[', by the following three lines:
[bison]
+BISON_SIMPLE=....
+BISON_HARIY=...
I'm not sure, offhand, how to express this as a 'sed' script, but
it should be possible.
The longer I think about it, the better the one-.env-file-per-package idea
looks...
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -