include $(TOPLEVEL)/make.vars
-CLEAN_FILES = *~ *.lc *.so
+CLEAN_FILES = *~ *.so
DOWNLOAD = http://www.e2factory.org/source/example
E2FACTORY_GIT = http://git.e2factory.org/git/e2factory/e2factory.git
include $(TOPLEVEL)/make.vars
-CLEAN_FILES = *~ *.lc *.o *.so
+CLEAN_FILES = *~ *.o *.so
.PHONY: all install uninstall local install-local clean
GLOBALLUATOOLS = e2-create-project e2-fetch-project e2-install-e2 e2-root
GLOBALSHTOOLS = e2-locate-project-root e2ssh
GLOBALTOOLS = $(GLOBALLUATOOLS) $(GLOBALSHTOOLS)
-CLEAN_FILES = *~ $(GLOBALTOOLS) *.lc e2 $(SCRIPTS) *.lua e2-su *.sh e2.conf
+CLEAN_FILES = *~ $(GLOBALTOOLS) e2 $(SCRIPTS) *.lua e2-su *.sh e2.conf
LUA_LIBS = strict.lua plugin.lua e2lib.lua
LUA_LIBS += e2option.lua hash.lua tools.lua transport.lua cache.lua url.lua
LUA_LIBS += generic_git.lua luafile.lua err.lua lock.lua
.PHONY: all install uninstall clean
-all: e2 e2-root $(SCRIPTS) e2-su $(GLOBALLUATOOLS:=.lc) \
+all: e2 e2-root $(SCRIPTS) e2-su \
$(GLOBALSHTOOLS:=.sh) e2.conf sha1.so e2-su-2.2 \
luafile_ll.so e2util.so
install: all install-dirs install-lua
for i in $(GLOBALLUATOOLS) ; do \
- install -m 755 $$i.lc $(DESTDIR)$(TOOLDIR)/$$i ; \
+ install -m 755 $$i.lua $(DESTDIR)$(TOOLDIR)/$$i ; \
ln -sf e2 $(DESTDIR)$(BINDIR)/$$i ; \
done
for i in $(GLOBALSHTOOLS) ; do \
%.lua: %.lua.in
$(TOPLEVEL)/scripts/genscript.sh $< $@
-%.lc: %.lua
- $(BUILD_LUAC) -o $@ $<
-
e2-su: e2-su.c
$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@
%.sh: %.sh.in
$(TOPLEVEL)/scripts/genscript.sh $< $@
-e2: e2.lc
+e2: e2.lua
echo "#!$(LIBEXECDIR)/e2-lua-$(LUA_VERSION)" >$@
cat $< >>$@
-e2-root: e2-root.lc
+e2-root: e2-root.lua
echo "#!$(LIBEXECDIR)/e2-lua-$(LUA_VERSION)" >$@
cat $< >>$@
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
-package.path = "@LIBDIR@/?.lc;@LIBDIR@/?.lua"
+package.path = "@LIBDIR@/?.lua"
package.cpath = "@LIBDIR@/?.so"
env_tool = "@ENV_TOOL@"
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
-package.path = "@LIBDIR@/?.lc;@LIBDIR@/?.lua"
+package.path = "@LIBDIR@/?.lua"
package.cpath = "@LIBDIR@/?.so"
require("buildconfig")
if e2util.stat(e2call.globaltool) then
e2call.tool = e2call.globaltool
- env = string.format("LUA_PATH='%s/?.lc;%s/?.lua' " ..
- "LUA_CPATH='%s/?.so'", buildconfig.LIBDIR, buildconfig.LIBDIR,
- buildconfig.LIBDIR)
+ env = string.format("LUA_PATH='%s/?.lua' LUA_CPATH='%s/?.so'",
+ buildconfig.LIBDIR, buildconfig.LIBDIR)
lua = buildconfig.LUA
cmd = string.format("%s %s %s %s", env, lua, e2call.tool, e2call.arg_string)
elseif not root then
" is not a global tool and we're not in a project environment")
elseif root and e2util.stat(e2call.localtool) then
e2call.tool = e2call.localtool
+ -- Search for .lc files, the local e2 may be of an older version
env = "LUA_PATH='" .. root .. "/.e2/lib/e2/?.lc;" ..
root .. "/.e2/lib/e2/?.lua' " ..
"LUA_CPATH=" .. root .. "/.e2/lib/e2/?.so"
VPATH = .:$(TOPLEVEL)/generic:$(TOPLEVEL)
-CLEAN_FILES = *~ *.so linux32 *.lc *.o
+CLEAN_FILES = *~ *.so linux32 *.o
CFLAGS += -I. -I$(DESTDIR)$(INCDIR) -I$(DESTDIR)$(INCDIR)/lua-$(LUA_VERSION) \
-I../lua/lua-$(LUA_VERSION)/src -fPIC
LDFLAGS += -L. -L../lua/lua-$(LUA_VERSION)/src -Wl,-R$(LIBDIR)
.PHONY: all install uninstall install install-local doc install-doc
-all: linux32 e2local.lc $(LOCALLUATOOLS:=.lc) sha1.so luafile_ll.so e2util.so
+all: linux32 sha1.so luafile_ll.so e2util.so
install:
# install symlinks for e2-2.1 compatibility
install-local: all install-local-dirs install-local-lua install-local-sourcefiles
test -n "$(PROJECTDIR)"
install -m 755 -d $(LOCALPLUGINDIR)
- install -m644 e2local.lc $(LOCALLIBDIR)/
for i in $(LOCALLUATOOLS); do \
- install -m 755 $$i.lc $(LOCALBINDIR)/e2-$$i; \
+ install -m 755 $$i.lua $(LOCALBINDIR)/e2-$$i; \
done
for i in $(LOCALSHTOOLS); do \
install -m 755 $$i $(LOCALBINDIR)/e2-$$i; \
%: %.in
$(TOPLEVEL)/scripts/genscript.sh $< $@
-%.lc: %.lua
- $(LUAC) -o $@ $<
-
-e2local.lc: \
- e2lib.lua
- $(LUAC) -o $@ $^
-
linux32: linux32.c
sha1.so: sha1.o lsha1.o
-- e2-buildnumbers -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
e2lib.init()
local info, re = e2tool.local_init(nil, "build-numbers")
-- e2-build -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
require("e2build")
local err = require("err")
-- e2-cf -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
local err = require("err")
-- dlist - list sorted dependencies -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
require("e2build")
e2lib.init()
-- dsort -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
require("e2build")
e2lib.init()
-- fetch-sources - Retrieve sources for project -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
require("e2build")
local err = require("err")
-- ls-project - show project information -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
local err = require("err")
-- e2-new-source - add new source onto an existing server -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
local generic_git = require("generic_git")
local cache = require("cache")
-- playground - enter existing chroot(1) environment -*- Lua -*-
-require("e2local")
+require("e2lib")
require("e2tool")
require("e2build")
local err = require("err")