diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-18 21:41:44 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-18 21:41:44 +0000 |
commit | 7ed89c97f760600df238f9853ee453570935870f (patch) | |
tree | a17573a43815071e35f85557519fefca739ef7ef /etc/README | |
parent | ac4aac0909da26befaaeb6b415f66cf35b6980e0 (diff) | |
download | luasocket-7ed89c97f760600df238f9853ee453570935870f.tar.gz luasocket-7ed89c97f760600df238f9853ee453570935870f.tar.bz2 luasocket-7ed89c97f760600df238f9853ee453570935870f.zip |
2.0 alpha RELEASED!
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 | ||