diff options
Diffstat (limited to 'etc/README')
-rw-r--r-- | etc/README | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -1,24 +1,10 @@ | |||
1 | This directory contains code that is more useful than the examples. This code | 1 | This directory contains code that is more useful than the examples. This code |
2 | *is* supported. | 2 | *is* supported. |
3 | 3 | ||
4 | lua.lua | 4 | lua.lua -- new require and requirelib implementations |
5 | 5 | ||
6 | These are modules to suport dynamic loading of LuaSocket by the stand alone | 6 | This is to support dynamic loading of LuaSocket. Check the INSTALL |
7 | Lua Interpreter with the use of new "require" and "requirelib" functions. | 7 | file for more information. |
8 | For my Mac OS X box, for instance, I place all files in | ||
9 | /Users/diego/tec/luasocket and set the following environment variables: | ||
10 | |||
11 | LUA_INIT=@/Users/diego/tec/luasocket/lua.lua | ||
12 | LUA_PATH=/Users/diego/tec/luasocket/?.lua;?.lua | ||
13 | LUA_PATHLIB=/Users/diego/tec/luasocket/?.dylib;?.dylib | ||
14 | |||
15 | With that, I can run any luasocket application with the command line: | ||
16 | |||
17 | lua <script> | ||
18 | |||
19 | as long as the script uses "require" to load the needed namespaces. | ||
20 | Much nicer than having to build a new executable just to initialize | ||
21 | LuaSocket! | ||
22 | 8 | ||
23 | tftp.lua -- Trivial FTP client | 9 | tftp.lua -- Trivial FTP client |
24 | 10 | ||