genlib

genlib — build library from all functions in given directory

Calling sequence

genlib(lib-name [,dir-name, [ force [,verbose]]])  

Parameters

lib-name: Scilab string. The variable name of the library to (re)create.
dir-name: Scilab string. The name of the directory to look for .bin-files; default value is the current directory.
force,verbose : boolean values (default values %f).

Description

For each .sci file in dir-name, genlib executes a getf and saves the functions to the corresponding .bin file. The .sci file must not contain anything but Scilab functions. If a .bin file is newer than the associated .sci file, genlib does not translate and save the file.

This default behaviour can be changed if force is given and set to %t. In this latter case the recompilation iis always performed for each .sci file.

When all .sci files have been processed, genlib creates a library variable named lib-name and saves it in the file lib in dir-name.

If verbose is et to %t informations are displayed during the build process.

Restrictions

Scilab tacitly assumes that file foo.sci defines only a single function named foo.

See also

getf, save, lib