Friday, October 21, 2011

Combine compilation() and installation() in LFScript?

A new parser for the LFS XML sources (ScriptFactory) is almost finished. It's code is much cleaner than the current ScriptFactory implementation and contains almost no package specific rules (which made the old ScriptFactory a pain to maintain).

Checking the output scripts made me question if it is necessary to keep the compilation() and installation() functions separate. I always had them separated, because the commands in installation() are modified to install the package to a fake root directory.

However, because a small amount of packages use one installation command in between compilation commands, the order of commands is slightly distorted in those scripts. It's nothing serious, but I'm still wondering if combining the two functions would be a cleaner solution. It would break compatibility with earlier LFScript 4.0 scripts though.

No comments:

Post a Comment