SNOBOL4SETUP(3) | CSNOBOL4B 2.2 | December 5, 2020
snobol4setup – SNOBOL4 Loadable module setup utility
snobol4 setup.sno command
The example program below (canonically called setup.sno) can be invoked
(portably across different operating systems)
with the following commands:
Compiles and links a dynamicly loadable executable file
named modulename (with the appropriate extension for the local system).
modulename.sno will be created from:
pre.sno (if it exists), followed by lines from sourcefiles:
any instances of LOAD(...) present in * comments,
any groups of lines starting with *=pea and ending with *=cut (inclusive),
and any comment lines bracketed by *=snobol4 and *=cut (exclusive)
will be copied without the leading *,
and finally funcs.sno (if it exists).
installs binary, include and man page files.
t = TABLE()
t['module'] = 'modulename'
t['sources'] = 'sourcefile.c,othername.c'
t['author'] = t['maintainer'] = 'Yourname Here'
t['author_email'] = t['maintainer_email'] = 'email@example.com'
t['include_dirs'] = 'list,of,dirs,to,search'
t['library_dirs'] = 'list,of,dirs,to,search'
t['libraries'] = 'list,of,library,names,to,link,against'
t['license'] = 'BSD'
NOT CONFORMING TO
Inspired by Python setuptools, easyinstall, et.al.
Philip L. Budne
Only tested under OS X, FreeBSD, Linux, CYGWIN, MINGW, Visual Studio.