diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-30 18:54:22 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-30 18:54:22 +0300 |
commit | 115b43ebb567886a5cf2c58da47fd5b87b69e7d7 (patch) | |
tree | 2e208785a4a6a5849005e2d7dce8005108871409 | |
parent | 030ebae8d4f1935868f32f584e7ab4a65b17d499 (diff) | |
download | luaotfload-115b43ebb567886a5cf2c58da47fd5b87b69e7d7.tar.gz |
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.
-rwxr-xr-x | mkluatexfontdb.lua | 25 |
1 files changed, 0 insertions, 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.") |