BUG DESCRIPTION:
----------------
With Scilab 5, it was formerly possible to compile a library with a selection of files in the lib directory.
There were two ways to select them:
a) through the mandatory "names" text file, in which files to be compiled could be listed
b) equivalently, through the names input option.
With Scilab 6.0, the "names" file is no longer required: OK, this is a welcome simplification.
BUT the "names" option has also be canceled!
So there is no longer any way to compile only a selection of files. This is an issue.
--> path = TMPDIR + "\myLib";
--> rmdir(path, "s");
--> mkdir(path);
--> mputl("function a=fun1(), a=1, endfunction", path+"\fun1.sci");
--> mputl("function a=fun2(), a=2, endfunction", path+"\fun2.sci");
--> clear mylib
--> genlib("mylib", path, %f, %f, "fun2")
genlib: Wrong number of input argument(s): 1 to 4 expected.
// Using the named option names= does not take it into account:
--> path = TMPDIR + "\myLib";
--> rmdir(path, "s");
--> mkdir(path);
--> mputl("function a=fun1(), a=1, endfunction", path+"\fun1.sci");
--> mputl("function a=fun2(), a=2, endfunction", path+"\fun2.sci");
--> clear mylib
--> genlib("mylib", path, names="fun2");
--> isfile(path+"\fun1.bin")
ans =
T
--> or(libraryinfo("mylib")=="fun1")
ans =
T
ERROR LOG:
----------
See above
HOW TO REPRODUCE THE BUG:
-------------------------
path = TMPDIR + "\myLib";
rmdir(path, "s")
mkdir(path);
mputl("function a=fun1(), a=1, endfunction", path+"\fun1.sci");
mputl("function a=fun2(), a=2, endfunction", path+"\fun2.sci");
clear mylib
genlib("mylib", path, %f, %f, "fun2") // comment / uncomment
//genlib("mylib", path, names="fun2") // uncomment / comment
isfile(path+"\fun1.bin")
or(libraryinfo("mylib")=="fun1")
OTHER INFORMATION:
------------------