This is srlua, a self-running Lua interpreter. It is meant to be combined
with a Lua program into a single, stand-alone program that will execute
the given Lua program when it is run. The Lua program can be in source or
in precompiled form, as output by luac.

The command-line arguments will be available to the Lua program in a table
named "arg" and also as '...'.

All standard Lua libraries will be available to the Lua program. To use a
different set of libraries, copy linit.c from the Lua source, edit it to
suit your needs, and then add it to srlua.c.

For each Lua program that you want to turn into a stand-alone program, do
	srglue srlua prog.lua a.out ; chmod +x a.out
Of course, you can use any name instead of a.out.

To build srlua and srglue and run a simple test, just do make.
If Lua is not installed in /usr/local, tell make:
	make LUA_TOPDIR=/var/tmp/lhf/lua-5.5.0/install

To install srlua and srglue where you can find it, use a variant of these:
	make install
	sudo make install
	sudo make install INSTALL_DIR=/usr/local/bin

For detailed installation instructions, see
	https://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html

For the latest version of srlua, see
	https://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#srlua

This code is hereby placed in the public domain and also under the MIT license.

Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .
