From 53390e957883233db8981897470cc49e4a690456 Mon Sep 17 00:00:00 2001 From: Tomas Guisasola Date: Fri, 1 Apr 2005 17:01:45 +0000 Subject: Removing old loader.tmpl. Correcting Makefile to accomplish CVS structure modifications. --- lualdap/Makefile | 26 ++++++++++++++------------ lualdap/src/loader.tmpl | 8 -------- lualdap/src/lualdap.c | 4 ++-- 3 files changed, 16 insertions(+), 22 deletions(-) delete mode 100755 lualdap/src/loader.tmpl diff --git a/lualdap/Makefile b/lualdap/Makefile index 6b0294b..717cad8 100755 --- a/lualdap/Makefile +++ b/lualdap/Makefile @@ -3,10 +3,10 @@ LUA_LIBDIR= /usr/local/lib/lua/5.0 # Lua includes directory LUA_INC= /usr/local/include/lua5 # OS dependent -#LIB_EXT= .so -LIB_EXT= .dylib -#LIB_OPTION= -shared #for Linux -LIB_OPTION= -dynamiclib #for MacOS X +LIB_EXT= .so +#LIB_EXT= .dylib +LIB_OPTION= -shared #for Linux +#LIB_OPTION= -dynamiclib #for MacOS X # On FreeBSD systems, the following line should be commented DLLIB= -ldl @@ -22,15 +22,15 @@ CC= gcc T= lualdap V= 1.0 -VERSION= $Vb +VERSION= $V PKG= lualdap-$(VERSION) DIST_DIR= $(PKG) TAR_FILE= $(PKG).tar.gz ZIP_FILE= $(PKG).zip SRCS= README Makefile \ - lualdap.c lualdap.def loader.tmpl \ - test.lua \ - index.html manual.html license.html lualdap.png + src/lualdap.c \ + tests/test.lua \ + doc/index.html doc/manual.html doc/license.html doc/lualdap.png AR= ar rcu RANLIB= ranlib @@ -40,13 +40,15 @@ LIB= lib$T$(VERSION).a LIBNAME= lib$T$(VERSION)$(LIB_EXT) dist: dist_dir - tar -czf $(TAR_FILE) $(DIST_DIR); + tar -czf $(TAR_FILE) $(DIST_DIR) zip -rq $(ZIP_FILE) $(DIST_DIR)/* rm -rf $(DIST_DIR) dist_dir: - mkdir $(DIST_DIR); - cp $(SRCS) $(DIST_DIR); + mkdir $(DIST_DIR) + cp README Makefile $(DIST_DIR) + cp -r src tests doc vc6 $(DIST_DIR) + find $(DIST_DIR) -name CVS | xargs rm -rf lib: $(LIB) $(LIB): $(OBJS) @@ -68,4 +70,4 @@ compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c clean: rm -f $(OBJS) $(LIB) $(SO) $(DYLIB) $(DLL) $(TAR_FILE) $(ZIP_FILE) -# $Id: Makefile,v 1.18 2005-02-01 16:52:04 tomas Exp $ +# $Id: Makefile,v 1.19 2005-04-01 17:01:45 tomas Exp $ diff --git a/lualdap/src/loader.tmpl b/lualdap/src/loader.tmpl deleted file mode 100755 index 89b7758..0000000 --- a/lualdap/src/loader.tmpl +++ /dev/null @@ -1,8 +0,0 @@ --- $Id: loader.tmpl,v 1.1 2003-09-01 19:01:07 tomas Exp $ -if not lualdap and loadlib then - local libname = "LIB_NAME" - local libopen = "lualdap_libopen" - local init, err1, err2 = loadlib (libname, libopen) - assert (init, (err1 or '')..(err2 or '')) - init () -end diff --git a/lualdap/src/lualdap.c b/lualdap/src/lualdap.c index 2de159e..b5d84e5 100755 --- a/lualdap/src/lualdap.c +++ b/lualdap/src/lualdap.c @@ -1,7 +1,7 @@ /* ** LuaLDAP ** See Copyright Notice in license.html -** $Id: lualdap.c,v 1.39 2005-04-01 16:49:12 tomas Exp $ +** $Id: lualdap.c,v 1.40 2005-04-01 17:01:45 tomas Exp $ */ #include @@ -961,7 +961,7 @@ static void set_info (lua_State *L) { lua_pushliteral (L, "LuaLDAP"); lua_settable (L, -3); lua_pushliteral (L, "_VERSION"); - lua_pushliteral (L, "1.0b"); + lua_pushliteral (L, "1.0"); lua_settable (L, -3); } -- cgit v1.2.3-59-g8ed1b