From 542fc9edfb02a4e0cbde369e16dd66227cba95fc Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 3 May 2013 19:55:03 +0200 Subject: make cache flushing work with new cache file --- luaotfload-tool.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'luaotfload-tool.lua') diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index bb935cf..0833842 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -253,11 +253,10 @@ actions.generate = function (job) end actions.flush = function (job) - local success, fontnames = names.flush_cache() + local success, lookups = names.flush_cache() if success then - local savedname = names.save(fontnames) - logs.names_report("info", 2, "cache", - "Cache emptied", #fontnames.mappings) + local savedname = names.save_lookups() + logs.names_report("info", 2, "cache", "Cache emptied") if savedname then return true, true end -- cgit v1.2.3 From 21b1fb201a2fd9f058c1fee24dbd29df1debe6f7 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 4 May 2013 11:49:12 +0200 Subject: bump version; add/update attributions --- luaotfload-tool.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'luaotfload-tool.lua') diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index 0833842..827ece9 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -1,8 +1,17 @@ #!/usr/bin/env texlua +----------------------------------------------------------------------- +-- FILE: luaotfload-tool.lua +-- DESCRIPTION: database functionality +-- REQUIREMENTS: luaotfload 2.2 +-- AUTHOR: Khaled Hosny, Élie Roux, Philipp Gesang +-- VERSION: 2.2 +-- CREATED: 2013-05-01 14:40:50+0200 +----------------------------------------------------------------------- --[[doc-- -This file was originally written by Elie Roux and Khaled Hosny and is under CC0 -license (see http://creativecommons.org/publicdomain/zero/1.0/legalcode). +This file was originally written (as \fileent{mkluatexfontdb.lua}) by +Elie Roux and Khaled Hosny and is under CC0 license (see +http://creativecommons.org/publicdomain/zero/1.0/legalcode). This file is a wrapper for the luaotfload font names module (luaotfload-database.lua). It is part of the luaotfload bundle, please -- cgit v1.2.3 From 8a24b32c0cfbf316aca3168cac09204d7691673d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 6 May 2013 13:38:18 +0200 Subject: GPL 2 everywhere --- luaotfload-tool.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'luaotfload-tool.lua') diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index 827ece9..0cd19b1 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -5,18 +5,24 @@ -- REQUIREMENTS: luaotfload 2.2 -- AUTHOR: Khaled Hosny, Élie Roux, Philipp Gesang -- VERSION: 2.2 --- CREATED: 2013-05-01 14:40:50+0200 +-- LICENSE: GPL v2 +-- CREATED: 2013-05-06 13:37:12+0200 ----------------------------------------------------------------------- --[[doc-- + This file was originally written (as \fileent{mkluatexfontdb.lua}) by -Elie Roux and Khaled Hosny and is under CC0 license (see -http://creativecommons.org/publicdomain/zero/1.0/legalcode). +Elie Roux and Khaled Hosny and, as a derived work of ConTeXt, is +provided under the terms of the GPL v2.0 license as printed in full +text in the manual (luaotfload.pdf). + + \url{http://www.gnu.org/licenses/old-licenses/gpl-2.0.html}. This file is a wrapper for the luaotfload font names module (luaotfload-database.lua). It is part of the luaotfload bundle, please see the luaotfload documentation for more info. Report bugs to -\url{https://github.com/lualatex/luaotfload/issues}. + + \url{https://github.com/lualatex/luaotfload/issues}. --doc]]-- @@ -24,7 +30,6 @@ kpse.set_program_name"luatex" local stringformat = string.format local texiowrite_nl = texio.write_nl -local stringfind = string.find local stringlower = string.lower @@ -102,7 +107,7 @@ require"luaotfload-override.lua" --- this populates the logs.* namespace require"luaotfload-database" require"alt_getopt" -local version = "2.2" -- same version number as luaotfload +local version = "2.2" -- same version number as luaotfload local names = fonts.names local db_src_out = names.path.dir.."/"..names.path.basename -- cgit v1.2.3