summaryrefslogtreecommitdiff
path: root/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-02-05 20:33:55 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-02-05 20:33:55 +0100
commitc88eb25bd287941119e1db0f52919e4beccb0114 (patch)
tree567e52b662de0eb3471b9dcf2e6ee4e718bac914 /luaotfload-tool.lua
parent374b1e07aef53f722814663e5a38fe900824beb4 (diff)
parentc29e7f302f6ab05b6e0975daeaa60240b530885d (diff)
downloadluaotfload-c88eb25bd287941119e1db0f52919e4beccb0114.tar.gz
Merge pull request #188 from phi-gamma/texlive2014
fix crash with broken names table
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-xluaotfload-tool.lua28
1 files changed, 13 insertions, 15 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua
index 5b7e0a2..8bc590a 100755
--- a/luaotfload-tool.lua
+++ b/luaotfload-tool.lua
@@ -104,18 +104,7 @@ if not luaotfloadconfig.strip then
luaotfloadconfig.strip = true
end
-do -- we don’t have file.basename and the likes yet, so inline parser ftw
- local slash = P"/"
- local dot = P"."
- local noslash = 1 - slash
- local slashes = slash^1
- local path = slashes^-1 * (noslash^1 * slashes)^1
- local thename = (1 - slash - dot)^1
- local extension = dot * (1 - slash - dot)^1
- local p_basename = path^-1 * C(thename) * extension^-1 * P(-1)
-
- luaotfloadconfig.self = "luaotfload-tool"
-end
+luaotfloadconfig.self = "luaotfload-tool"
config.lualibs = config.lualibs or { }
config.lualibs.verbose = false
@@ -175,12 +164,13 @@ local help_messages = {
Usage: %s [OPTIONS...]
-Operations on the Luaotfload font names database.
+ Luaotfload font management and diagnostic utility.
+ This program is part of the Luaotfload package.
-This tool is part of the luaotfload package. Valid options are:
+ Valid options are:
-------------------------------------------------------------------------------
- VERBOSITY AND LOGGING
+ VERBOSITY AND DIAGNOSTICS
-q --quiet don't output anything
-v --verbose=LEVEL be more verbose (print the searched directories)
@@ -266,8 +256,16 @@ local help_msg = function (version)
luaotfloadconfig.cache_dir)))
end
+local about = [[
+%s:
+ Luaotfload font management and diagnostic utility.
+ License: GNU GPL v2.0.
+ Report problems to <https://github.com/lualatex/luaotfload/issues>
+]]
+
local version_msg = function ( )
local out = function (...) texiowrite_nl (stringformat (...)) end
+ out (about, luaotfloadconfig.self)
out ("%s version %q", luaotfloadconfig.self, version)
out ("revision %q", luaotfloadstatus.notes.revision)
out ("database version %q", names.version)