diff options
-rw-r--r-- | README | 43 | ||||
-rw-r--r-- | doc/us/examples.html | 3 | ||||
-rw-r--r-- | doc/us/index.html | 14 | ||||
-rw-r--r-- | doc/us/license.html | 5 | ||||
-rw-r--r-- | doc/us/manual.html | 14 | ||||
-rw-r--r-- | src/lfs.c | 4 | ||||
-rw-r--r-- | src/lfs.def | 2 |
7 files changed, 62 insertions, 23 deletions
@@ -0,0 +1,43 @@ | |||
1 | Overview | ||
2 | -------- | ||
3 | |||
4 | LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution. LuaFileSystem offers a portable way to access the underlying directory structure and file attributes. LuaFileSystem is free software and uses the same license as Lua 5.1 | ||
5 | |||
6 | Status | ||
7 | ------ | ||
8 | |||
9 | Current version is 1.2.1. It was developed for Lua 5.1. | ||
10 | |||
11 | Download | ||
12 | -------- | ||
13 | |||
14 | LuaFileSystem source can be downloaded from its Lua Forge page. If you are using LuaBinaries 5.1.2 a Windows binary version of LuaFileSystem can be found at the same LuaForge page. | ||
15 | |||
16 | History | ||
17 | ------- | ||
18 | |||
19 | Version 1.2.1 [08/May/2007] | ||
20 | * compatible only with Lua 5.1 (Lua 5.0 support was dropped) | ||
21 | |||
22 | Version 1.2 [15/Mar/2006] | ||
23 | * added optional argument to lfs.attributes | ||
24 | * added function lfs.rmdir | ||
25 | * bug correction on lfs.dir | ||
26 | |||
27 | Version 1.1 [30/May/2005] | ||
28 | * added function lfs.touch. | ||
29 | |||
30 | Version 1.0 [21/Jan/2005] | ||
31 | Version 1.0 Beta [10/Nov/2004] | ||
32 | |||
33 | Credits | ||
34 | ------- | ||
35 | |||
36 | LuaFileSystem was designed by Roberto Ierusalimschy, André Carregal and Tomás Guisasola as part of the Kepler Project, which holds its copyright. | ||
37 | |||
38 | Contact us | ||
39 | ---------- | ||
40 | |||
41 | For more information please contact us on (info @ keplerproject.org). Comments are welcome! | ||
42 | |||
43 | You can also reach other Kepler developers and users on the Kepler Project mailing list. \ No newline at end of file | ||
diff --git a/doc/us/examples.html b/doc/us/examples.html index 89f7070..b972d6c 100644 --- a/doc/us/examples.html +++ b/doc/us/examples.html | |||
@@ -39,6 +39,7 @@ | |||
39 | <li><a href="manual.html">Manual</a> | 39 | <li><a href="manual.html">Manual</a> |
40 | <ul> | 40 | <ul> |
41 | <li><a href="manual.html#introduction">Introduction</a></li> | 41 | <li><a href="manual.html#introduction">Introduction</a></li> |
42 | <li><a href="manual.html#building">Building</a></li> | ||
42 | <li><a href="manual.html#installation">Installation</a></li> | 43 | <li><a href="manual.html#installation">Installation</a></li> |
43 | <li><a href="manual.html#reference">Reference</a></li> | 44 | <li><a href="manual.html#reference">Reference</a></li> |
44 | </ul> | 45 | </ul> |
@@ -94,7 +95,7 @@ attrdir (".") | |||
94 | <div id="about"> | 95 | <div id="about"> |
95 | <p><a href="http://validator.w3.org/check?uri=referer"> | 96 | <p><a href="http://validator.w3.org/check?uri=referer"> |
96 | <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> | 97 | <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> |
97 | <p><small>$Id: examples.html,v 1.5 2006/03/14 14:07:55 carregal Exp $</small></p> | 98 | <p><small>$Id: examples.html,v 1.6 2007/05/08 19:23:12 carregal Exp $</small></p> |
98 | </div> <!-- id="about" --> | 99 | </div> <!-- id="about" --> |
99 | 100 | ||
100 | </div> <!-- id="container" --> | 101 | </div> <!-- id="container" --> |
diff --git a/doc/us/index.html b/doc/us/index.html index ea17303..c48b19a 100644 --- a/doc/us/index.html +++ b/doc/us/index.html | |||
@@ -71,25 +71,23 @@ the underlying directory structure and file attributes.</p> | |||
71 | 71 | ||
72 | <h2><a name="status"></a>Status</h2> | 72 | <h2><a name="status"></a>Status</h2> |
73 | 73 | ||
74 | <p>Current version is 1.2.1. It was developed for both Lua 5.0 and Lua 5.1.</p> | 74 | <p>Current version is 1.2.1. It was developed for Lua 5.1.</p> |
75 | 75 | ||
76 | <h2><a name="download"></a>Download</h2> | 76 | <h2><a name="download"></a>Download</h2> |
77 | 77 | ||
78 | <p>LuaFileSystem source can be downloaded from its | 78 | <p>LuaFileSystem source can be downloaded from its |
79 | <a href="http://luaforge.net/projects/luafilesystem/files">Lua Forge</a> | 79 | <a href="http://luaforge.net/projects/luafilesystem/files">Lua Forge</a> |
80 | page. If you are using | 80 | page. If you are using |
81 | <a href="http://luabinaries.luaforge.net">LuaBinaries</a> 5.0.2 Release 2 | 81 | <a href="http://luabinaries.luaforge.net">LuaBinaries</a> 5.1.2 a Windows binary |
82 | a Windows binary version of LuaFileSystem can be found at the same | 82 | version of LuaFileSystem can be found at the same LuaForge page.</p> |
83 | LuaForge page.</p> | ||
84 | |||
85 | 83 | ||
86 | <h2><a name="history"></a>History</h2> | 84 | <h2><a name="history"></a>History</h2> |
87 | 85 | ||
88 | <dl class="history"> | 86 | <dl class="history"> |
89 | <dt><strong>Version 1.2.1</strong> [?/Jun/2006]</dt> | 87 | <dt><strong>Version 1.2.1</strong> [08/May/2007]</dt> |
90 | <dd> | 88 | <dd> |
91 | <ul> | 89 | <ul> |
92 | <li>adapted to work on both Lua 5.0 and Lua 5.1</li> | 90 | <li>compatible only with Lua 5.1 (Lua 5.0 support was dropped)</li> |
93 | </ul> | 91 | </ul> |
94 | </dd> | 92 | </dd> |
95 | 93 | ||
@@ -141,7 +139,7 @@ Comments are welcome!</p> | |||
141 | <div id="about"> | 139 | <div id="about"> |
142 | <p><a href="http://validator.w3.org/check?uri=referer"> | 140 | <p><a href="http://validator.w3.org/check?uri=referer"> |
143 | <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> | 141 | <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> |
144 | <p><small>$Id: index.html,v 1.34 2006/07/24 01:19:42 tomas Exp $</small></p> | 142 | <p><small>$Id: index.html,v 1.35 2007/05/08 19:23:12 carregal Exp $</small></p> |
145 | </div> <!-- id="about" --> | 143 | </div> <!-- id="about" --> |
146 | 144 | ||
147 | </div> <!-- id="container" --> | 145 | </div> <!-- id="container" --> |
diff --git a/doc/us/license.html b/doc/us/license.html index 6bb4aaa..8c89ca3 100644 --- a/doc/us/license.html +++ b/doc/us/license.html | |||
@@ -39,6 +39,7 @@ | |||
39 | <li><a href="manual.html">Manual</a> | 39 | <li><a href="manual.html">Manual</a> |
40 | <ul> | 40 | <ul> |
41 | <li><a href="manual.html#introduction">Introduction</a></li> | 41 | <li><a href="manual.html#introduction">Introduction</a></li> |
42 | <li><a href="manual.html#building">Building</a></li> | ||
42 | <li><a href="manual.html#installation">Installation</a></li> | 43 | <li><a href="manual.html#installation">Installation</a></li> |
43 | <li><a href="manual.html#reference">Reference</a></li> | 44 | <li><a href="manual.html#reference">Reference</a></li> |
44 | </ul> | 45 | </ul> |
@@ -84,7 +85,7 @@ Ierusalimschy, André Carregal and Tomás Guisasola. | |||
84 | The implementation is not derived from licensed software.</p> | 85 | The implementation is not derived from licensed software.</p> |
85 | 86 | ||
86 | <hr/> | 87 | <hr/> |
87 | <p>Copyright © 2004-2006 The Kepler Project.</p> | 88 | <p>Copyright © 2004-2007 The Kepler Project.</p> |
88 | 89 | ||
89 | <p>Permission is hereby granted, free of charge, to any person | 90 | <p>Permission is hereby granted, free of charge, to any person |
90 | obtaining a copy of this software and associated documentation | 91 | obtaining a copy of this software and associated documentation |
@@ -113,7 +114,7 @@ SOFTWARE.</p> | |||
113 | <div id="about"> | 114 | <div id="about"> |
114 | <p><a href="http://validator.w3.org/check?uri=referer"> | 115 | <p><a href="http://validator.w3.org/check?uri=referer"> |
115 | <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> | 116 | <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> |
116 | <p><small>$Id: license.html,v 1.9 2006/03/14 14:07:55 carregal Exp $</small></p> | 117 | <p><small>$Id: license.html,v 1.10 2007/05/08 19:23:12 carregal Exp $</small></p> |
117 | </div><!-- id="about" --> | 118 | </div><!-- id="about" --> |
118 | 119 | ||
119 | </div><!-- id="container" --> | 120 | </div><!-- id="container" --> |
diff --git a/doc/us/manual.html b/doc/us/manual.html index 441209f..e08bf09 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html | |||
@@ -67,11 +67,10 @@ the underlying directory structure and file attributes.</p> | |||
67 | <h2><a name="building"></a>Building</h2> | 67 | <h2><a name="building"></a>Building</h2> |
68 | 68 | ||
69 | <p> | 69 | <p> |
70 | LuaFileSystem could be built to Lua 5.0 or to Lua 5.1. | 70 | LuaFileSystem should be built with Lua 5.1 so the language library |
71 | In both cases, | 71 | and header files for the target version must be installed properly. |
72 | the language library and headers files for the target version | ||
73 | must be installed properly. | ||
74 | </p> | 72 | </p> |
73 | |||
75 | <p> | 74 | <p> |
76 | LuaFileSystem offers a Makefile and a separate configuration file, | 75 | LuaFileSystem offers a Makefile and a separate configuration file, |
77 | <code>config</code>, | 76 | <code>config</code>, |
@@ -79,15 +78,12 @@ which should be edited to suit your installation before runnig | |||
79 | <code>make</code>. | 78 | <code>make</code>. |
80 | The file has some definitions like paths to the external libraries, | 79 | The file has some definitions like paths to the external libraries, |
81 | compiler options and the like. | 80 | compiler options and the like. |
82 | One important definition is the version of Lua language, | ||
83 | which is not obtained from the installed software. | ||
84 | </p> | 81 | </p> |
85 | 82 | ||
86 | <h2><a name="installation"></a>Installation</h2> | 83 | <h2><a name="installation"></a>Installation</h2> |
87 | 84 | ||
88 | <p>The LuaFileSystem compiled binary should be copied to a directory in your | 85 | <p>The LuaFileSystem compiled binary should be copied to a directory in your |
89 | <a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>. | 86 | <a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>.</p> |
90 | Lua 5.0 users should also install <a href="http://www.keplerproject.org/compat">Compat-5.1</a>.</p> | ||
91 | 87 | ||
92 | <p>Windows users can use the binary version of LuaFileSystem | 88 | <p>Windows users can use the binary version of LuaFileSystem |
93 | (<code>lfs.dll</code>) available at | 89 | (<code>lfs.dll</code>) available at |
@@ -232,7 +228,7 @@ LuaFileSystem offers the following functions: | |||
232 | <div id="about"> | 228 | <div id="about"> |
233 | <p><a href="http://validator.w3.org/check?uri=referer"> | 229 | <p><a href="http://validator.w3.org/check?uri=referer"> |
234 | <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> | 230 | <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> |
235 | <p><small>$Id: manual.html,v 1.33 2006/07/24 01:19:42 tomas Exp $</small></p> | 231 | <p><small>$Id: manual.html,v 1.34 2007/05/08 19:23:12 carregal Exp $</small></p> |
236 | </div> <!-- id="about" --> | 232 | </div> <!-- id="about" --> |
237 | 233 | ||
238 | </div> <!-- id="container" --> | 234 | </div> <!-- id="container" --> |
@@ -14,7 +14,7 @@ | |||
14 | ** lfs.touch (filepath [, atime [, mtime]]) | 14 | ** lfs.touch (filepath [, atime [, mtime]]) |
15 | ** lfs.unlock (fh) | 15 | ** lfs.unlock (fh) |
16 | ** | 16 | ** |
17 | ** $Id: lfs.c,v 1.35 2006/12/04 15:28:53 mascarenhas Exp $ | 17 | ** $Id: lfs.c,v 1.36 2007/05/08 19:23:12 carregal Exp $ |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <errno.h> | 20 | #include <errno.h> |
@@ -554,7 +554,7 @@ static int file_info (lua_State *L) { | |||
554 | */ | 554 | */ |
555 | static void set_info (lua_State *L) { | 555 | static void set_info (lua_State *L) { |
556 | lua_pushliteral (L, "_COPYRIGHT"); | 556 | lua_pushliteral (L, "_COPYRIGHT"); |
557 | lua_pushliteral (L, "Copyright (C) 2003-2006 Kepler Project"); | 557 | lua_pushliteral (L, "Copyright (C) 2003-2007 Kepler Project"); |
558 | lua_settable (L, -3); | 558 | lua_settable (L, -3); |
559 | lua_pushliteral (L, "_DESCRIPTION"); | 559 | lua_pushliteral (L, "_DESCRIPTION"); |
560 | lua_pushliteral (L, "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution"); | 560 | lua_pushliteral (L, "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution"); |
diff --git a/src/lfs.def b/src/lfs.def index 55ec688..dfe5c59 100644 --- a/src/lfs.def +++ b/src/lfs.def | |||
@@ -1,5 +1,5 @@ | |||
1 | LIBRARY lfs.dll | 1 | LIBRARY lfs.dll |
2 | DESCRIPTION "LuaFileSystem" | 2 | DESCRIPTION "LuaFileSystem" |
3 | VERSION 1.2 | 3 | VERSION 1.2.1 |
4 | EXPORTS | 4 | EXPORTS |
5 | luaopen_lfs | 5 | luaopen_lfs |