Generate loader and unloader scripts (toolbox compilation process)
tbx_build_loader() tbx_build_loader(toolbox_path) tbx_build_loader(toolbox_name) // obsolete tbx_build_loader(toolbox_name, toolbox_path) // obsolete
a single string. Root directory of toolbox sources ;
the script will be generated here (default: current directory).
The file toolbox_path/etc/*.start must exist.
The toolbox_name is retrieved from its basename.
a single string. Toolbox short name ; the library and help chapter name when generating the default loader.
// Recommended usage, from any builder.sce: tbx_build_loader(get_absolute_file_path('builder.sce')) | ![]() | ![]() |
tbx_build_loader is used for generating the loader and unloader files of a toolbox.
This macro is usally called from the builder.sce script when creating a toolbox.
The name of the toolbox is retrieved from the name of the .start file present in the etc directory.
If the file toolbox_path/etc/*.start is not empty (even not a single space)
tbx_build_loader generates a loader.sce
script that will executes it at toolbox startup.
Otherwise, a default loader.sce file performing the following is generated:
macros/ directory, if it exists;sci_gateway/ directory, if it exists;src/java/ directory, if it exists;jar/ directory, if it exists;demos/ directory, if it exists;etc, if it exists.Also generates an unloader file calling the etc .quit file, if it exists.
| Version | Description |
| 5.4.0 | This function generates also an unloader.sce script |
| 6.0.0 |
|