The [sys_dll_ext] method returns the proper dynamic library file extension for the platform. For example, it will return 'dylib' on Mac OS X and 'so' on Linux.
sys_dll_ext
[sys_dll_ext] is an excellent help when batch compiling lasso 9 files. Since the files need to have different suffixes depending on what platform they are compiled on. Saving this code in a file (make_compiled.lasso9) and running it from the command line will batch compile all .lasso files found in the same directory to the correct format for the platform lasso runs on.
Here's the command to run:
lasso9 ./make_compiled.lasso9 | bash
Code
local(filename = array)
local(filesuffix = sys_dll_ext)
'make -f2 '
iterate(file_listdirectory('./')) => {^
if(loop_value -> endswith('.lasso')) => {^
#filename = loop_value -> split('.')
#filename -> removelast
#filename -> insert(#filesuffix)
#filename -> join('.')
' '
^}
^}
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments