|
|
Defining Modules With Language Specific Files
Before understanding this section, you have to know the scp item Module. Documentation about this item can be found here. The strict separation of language dependent and language independent files that is required for the new package structure of an OpenOffice.org 3.0 and the huge number of supported languages, made is necessary to introduce a new process of module creation in scp tooling. This new process supports automatic module generation for all languages supported by OpenOffice.org. Therefore it was necessary to add to the existing script particle files (scp) the new script template files (sct). sct files contain abstract module definitions, without assignments of scp items like "Files", "Dirs", ... and with placeholders for language settings. This sct files are evaluated during scp2 build by Perl programs, that resolve the language settings in the abstract module definitions. In this process the sct file is expanded to an inc file, which is again included into a scp file. The result is a scp file that can be very big. Because of the huge number of languages it can contain thousand of module definitions. The assignments of scp items like "Files", "Dirs", ... should not be done inside the sct file, but as you are used to, inside a scp file. Therefore template modules were introduced, that are not a visible module during product installation, but are only used for assignments. This modules must have the flag TEMPLATEMODULE and are defined in scp files. Especially language specific files should be assigned to modules with flag TEMPLATEMODULE in the future. The abstract modules that are defined in the sct files can reference this modules using the new key "Assigns=...". If the module shall also be used for package creation (RPM, Solaris Package, ...), it is additionally necessary to define a file, containing the package information for this module. This happens with the key "PackageInfo=..." in the Module definition. In the following there is a step-by-step explanation of this new process for language dependent modules with language specific files:
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Step 6: Because of this changes in the SRC680 m242 it is strictly recommended, that all language specific files are assigned to modules with flag TEMPLATEMODULE. If there are wrong assignments, so that language specific files and not language specific files are assigned to one module, the packaging process can find this errors and stops the creation of the installation set. |


