summaryrefslogtreecommitdiff
path: root/lualibs-basic.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-21 00:55:45 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-21 00:55:45 +0200
commit1e04ecc2c4918448e8ff30a2e6363025267cac79 (patch)
treeb31b5a94146a0a300b3fd09cb50d5736a002f086 /lualibs-basic.lua
parent465d4cbb1ba7162d6c60ebd55449c71981f1b75c (diff)
downloadlualibs-1e04ecc2c4918448e8ff30a2e6363025267cac79.tar.gz
add rudimentary verbosity switch
Diffstat (limited to 'lualibs-basic.lua')
-rw-r--r--lualibs-basic.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/lualibs-basic.lua b/lualibs-basic.lua
index cf8d6ea..8bdaf70 100644
--- a/lualibs-basic.lua
+++ b/lualibs-basic.lua
@@ -11,18 +11,15 @@ local lualibs_basic_module = {
license = "See ConTeXt's mreadme.pdf for the license",
}
-local find_file, error, warn, info
-if luatexbase and luatexbase.provides_module then
- error, warn, info = luatexbase.provides_module(lualibs_basic_module)
-else
- error, warn, info = texio.write_nl, texio.write_nl, texio.write_nl -- stub
-end
+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."