From 115b43ebb567886a5cf2c58da47fd5b87b69e7d7 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 30 May 2010 18:54:22 +0300 Subject: Remove --fc-cache option We no longer query fontconfig cache rendering this option useless. Someone have to test it, I can't run the script here. --- mkluatexfontdb.lua | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua index 0c71a27..a72478b 100755 --- a/mkluatexfontdb.lua +++ b/mkluatexfontdb.lua @@ -36,7 +36,6 @@ Valid options: -v --verbose=LEVEL be more verbose (print the searched directories) -vv print the loaded fonts -vvv print all steps of directory searching - --fc-cache run fc-cache before updating database --sys install the database system-wide (default is only for the current user) -V --version print version and exit @@ -81,7 +80,6 @@ local long_opts = { force = "f", quiet = "q", help = "h", - ['fc-cache'] = 0 , sys = 0 , verbose = 1 , version = "V", @@ -89,26 +87,6 @@ local long_opts = { local short_opts = "d:fqpvVh" -local function do_run_fc_cache(c) - --[[ - Function running fc-cache if needed. - The argument is nil for default, 0 for no fc-cache and 1 for fc-cache. - Default behaviour is to run fc-cache if available. - --]] - if c == 0 then return end - if not c then - -- TODO: detect if fc-cache is available - end - local toexec = 'fc-cache' - if os.type == 'windows' then - toexec = 'fc-cache.exe' -- TODO: to test on a non-cygwin Windows - end - log('executing %s...\n', toexec) - os.execute(toexec) -end - --- a temporary variable, containing the command line option concerning fc-cache -local run_fc_cache = 0 local force_reload = nil local function process_cmdline() @@ -133,8 +111,6 @@ local function process_cmdline() output_directory = optarg [i] elseif v == "f" then force_reload = 1 - elseif v == "fc-cache" then - run_fc_cache = 1 elseif v == "sys" then output_directory = names.path.systemdir end @@ -147,7 +123,6 @@ local function process_cmdline() end process_cmdline() -do_run_fc_cache(run_fc_cache) local function generate(force) log("generating font names database.") -- cgit v1.2.3