mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-25 13:13:07 +00:00
Regra que cria a distribuicao (Makefile).
Troca de nome da biblioteca (lfs).
This commit is contained in:
10
Makefile
10
Makefile
@@ -1,10 +1,13 @@
|
|||||||
# $Id: Makefile,v 1.2 2004/07/29 14:26:33 tomas Exp $
|
# $Id: Makefile,v 1.3 2004/07/29 16:47:11 tomas Exp $
|
||||||
|
|
||||||
T= lfs
|
T= lfs
|
||||||
|
|
||||||
include ./config
|
include ./config
|
||||||
|
|
||||||
V= 1.0a
|
V= 1.0a
|
||||||
|
DIST_DIR= luafilesystem-$V
|
||||||
|
TAR_FILE= $(DIST_DIR).tar.gz
|
||||||
|
ZIP_FILE= $(DIST_DIR).zip
|
||||||
LIBNAME= lib$T.$V$(LIB_EXT)
|
LIBNAME= lib$T.$V$(LIB_EXT)
|
||||||
L= $T.lua
|
L= $T.lua
|
||||||
TL= t_$T.lua
|
TL= t_$T.lua
|
||||||
@@ -32,4 +35,7 @@ clean:
|
|||||||
|
|
||||||
dist:
|
dist:
|
||||||
mkdir -p $(DIST_DIR)
|
mkdir -p $(DIST_DIR)
|
||||||
cp config $(SRCS) $T.h $(TL) Makefile $(DIST_DIR)
|
cp config $(SRCS) $T.h $T.def $(TL) Makefile *html $(DIST_DIR)
|
||||||
|
tar -czf $(TAR_FILE) $(DIST_DIR)
|
||||||
|
zip -rq $(ZIP_FILE) $(DIST_DIR)/*
|
||||||
|
rm -rf $(DIST_DIR)
|
||||||
|
|||||||
@@ -55,22 +55,22 @@ as Lua 5.0.
|
|||||||
LuaFileSystem offers the following functions:
|
LuaFileSystem offers the following functions:
|
||||||
<ul>
|
<ul>
|
||||||
<a name="chdir"></a>
|
<a name="chdir"></a>
|
||||||
<li> <b><tt>luafilesystem.chdir (path)</tt></b> <br>
|
<li> <b><tt>lfs.chdir (path)</tt></b> <br>
|
||||||
Changes the current
|
Changes the current
|
||||||
working directory to the given <tt>path</tt>.
|
working directory to the given <tt>path</tt>.
|
||||||
|
|
||||||
<a name="getcwd"></a>
|
<a name="getcwd"></a>
|
||||||
<li> <b><tt>luafilesystem.currentdir ()</tt></b> <br>
|
<li> <b><tt>lfs.currentdir ()</tt></b> <br>
|
||||||
Returns the current
|
Returns the current
|
||||||
working directory or <code>nil</code> plus an error string.
|
working directory or <code>nil</code> plus an error string.
|
||||||
|
|
||||||
<a name="dir"></a>
|
<a name="dir"></a>
|
||||||
<li> <b><tt>luafilesystem.dir (path)</tt></b> <br>
|
<li> <b><tt>lfs.dir (path)</tt></b> <br>
|
||||||
Lua iterator over the entries
|
Lua iterator over the entries
|
||||||
of a given directory.
|
of a given directory.
|
||||||
|
|
||||||
<a name="lock"></a>
|
<a name="lock"></a>
|
||||||
<li> <b><tt>luafilesystem.lock (filehandle, mode[, start[, length]])</tt></b> <br>
|
<li> <b><tt>lfs.lock (filehandle, mode[, start[, length]])</tt></b> <br>
|
||||||
Locks a file or a part of it.
|
Locks a file or a part of it.
|
||||||
This function works on <em>open files</em>;
|
This function works on <em>open files</em>;
|
||||||
the file handle should be specified as the first argument.
|
the file handle should be specified as the first argument.
|
||||||
@@ -84,12 +84,12 @@ LuaFileSystem offers the following functions:
|
|||||||
error.
|
error.
|
||||||
|
|
||||||
<a name="mkdir"></a>
|
<a name="mkdir"></a>
|
||||||
<li> <b><tt>luafilesystem.mkdir (dirname)</tt></b> <br>
|
<li> <b><tt>lfs.mkdir (dirname)</tt></b> <br>
|
||||||
Creates a new directory.
|
Creates a new directory.
|
||||||
The argument is the name of the new directory.
|
The argument is the name of the new directory.
|
||||||
|
|
||||||
<a name="unlock"></a>
|
<a name="unlock"></a>
|
||||||
<li> <b><tt>luafilesystem.unlock (filehandle[, start[, length]])</tt></b> <br>
|
<li> <b><tt>lfs.unlock (filehandle[, start[, length]])</tt></b> <br>
|
||||||
Unlocks a file or a part of it.
|
Unlocks a file or a part of it.
|
||||||
This function works on <em>open files</em>;
|
This function works on <em>open files</em>;
|
||||||
the file handle should be specified as the first argument.
|
the file handle should be specified as the first argument.
|
||||||
@@ -137,7 +137,7 @@ LuaFileSystem offers the following functions:
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<small>
|
<small>
|
||||||
$Id: manual.html,v 1.1 2004/07/27 14:15:24 tomas Exp $
|
$Id: manual.html,v 1.2 2004/07/29 16:47:11 tomas Exp $
|
||||||
</small>
|
</small>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user