genlib
builds a library from a set of *.sci files defining functions in a given directory
Syntax
genlib(lib_name) genlib(lib_name, dir_name) genlib(lib_name, dir_name, Force) genlib(lib_name, dir_name, Force, verb) genlib(lib_name [,path=dir_name] [,verbose=verb] [,force=Force])
Arguments
- lib_name
Scilab string: The identifying name ascribed to the library to build.
- dir_name
Scilab string: The pathname of the directory containing
.scifunctions files, and where thelibfile generated and defining the library will be stored. By default, the current working directory is considered.
The
dir_namedirectory and itsliband.binfiles must be writable.- Force
boolean value (default value is
%f). Set it to%tto force the sci-files recompilation.- verb
boolean value (default value is
%f). Set it to%tto display more information during the build.
Description
genlib(..) selects all files belonging to the
dir_name directory and with the .sci extension.
If any, subdirectories are never considered. If it is required, they must be compiled
apart into independent libraries.
Then, an XML editable file named lib is created in the
dir_name directory. The name lib_name
of the library is recorded into it.
Then, for each .sci file:
If
there is no related
.binfile indir_namewith the same basename (as for the initial build of the library), orthe content of the
.scifile has changed since the previous build,
Otherwise: If the file's content has not changed and has already a function entry in the
libfile, this entry is kept.
If the option force=%t is used, all .sci files
are compiled, even if their content has not changed.
When in the directory of a library some former .sci files have been removed while
all remaining .sci files are unchanged, rebuilding the library without the
force=%t will anyway update the list of library's members.
If the option verbose is true, more information is displayed during
the build process.
See also
History
| Version | Description |
| 6.0.0 |
|
| 2026.0.0 | Generated library is not automatically loaded anymore. lib must be called. |
| Report an issue | ||
| << Libraries | Libraries | get_function_path >> |