diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-29 15:04:45 -0700 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-29 15:04:45 -0700 |
commit | 202f064c65283e482f149868437e2881a73ebe3d (patch) | |
tree | b31b5a94146a0a300b3fd09cb50d5736a002f086 /lualibs-basic.lua | |
parent | 5ff06a36a0e82f3350bc955fac3825d7a1969289 (diff) | |
parent | 1e04ecc2c4918448e8ff30a2e6363025267cac79 (diff) | |
download | lualibs-202f064c65283e482f149868437e2881a73ebe3d.tar.gz |
Merge pull request #2 from phi-gamma/master
merge experimental branch
Diffstat (limited to 'lualibs-basic.lua')
-rw-r--r-- | lualibs-basic.lua | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/lualibs-basic.lua b/lualibs-basic.lua new file mode 100644 index 0000000..8bdaf70 --- /dev/null +++ b/lualibs-basic.lua @@ -0,0 +1,54 @@ +-- This is file `lualibs-basic.lua', +module('lualibs-basic', package.seeall) + +local lualibs_basic_module = { + name = "lualibs-basic", + version = 1.01, + date = "2013/04/10", + description = "Basic Lua extensions, meta package.", + author = "Hans Hagen, PRAGMA-ADE, Hasselt NL & Elie Roux", + copyright = "PRAGMA ADE / ConTeXt Development Team", + license = "See ConTeXt's mreadme.pdf for the license", +} + +local lualibs = _G.config.lualibs +local error, warn, info = lualibs.error, lualibs.warn, lualibs.info + +local loadmodule = lualibs.loadmodule +local stringformat = string.format + +local loaded = false +if lualibs.prefer_merged then + info"Loading merged package for collection “basic”." + loaded = loadmodule('lualibs-basic-merged.lua') +else + info"Ignoring merged packages." + info"Falling back to individual libraries from collection “basic”." +end + +if loaded == false then + loadmodule("lualibs-lua.lua") + loadmodule("lualibs-package.lua") + loadmodule("lualibs-lpeg.lua") + loadmodule("lualibs-function.lua") + loadmodule("lualibs-string.lua") + loadmodule("lualibs-table.lua") + loadmodule("lualibs-boolean.lua") + loadmodule("lualibs-number.lua") + loadmodule("lualibs-math.lua") + loadmodule("lualibs-io.lua") + loadmodule("lualibs-os.lua") + loadmodule("lualibs-file.lua") + loadmodule("lualibs-md5.lua") + loadmodule("lualibs-dir.lua") + loadmodule("lualibs-unicode.lua") + loadmodule("lualibs-url.lua") + loadmodule("lualibs-set.lua") +end + +-- these don’t look much basic to me: +--l-pdfview.lua +--l-xml.lua + +-- vim:tw=71:sw=2:ts=2:expandtab +-- End of File `lualibs.lua'. |