From d1c5ad9e2f25f73b84c87ef3bcec2432ff6e4ac6 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 6 Sep 2022 03:01:30 +0000 Subject: CTAN sync 202209060301 --- support/texlogsieve/texlogsieve | 22 +++++++++++++++------- support/texlogsieve/texlogsieve.1 | 2 +- support/texlogsieve/texlogsieve.pdf | Bin 60077 -> 60124 bytes support/texlogsieve/texlogsieve.tex | 5 +++-- 4 files changed, 19 insertions(+), 10 deletions(-) (limited to 'support') diff --git a/support/texlogsieve/texlogsieve b/support/texlogsieve/texlogsieve index 331651fd55..8130b189d3 100755 --- a/support/texlogsieve/texlogsieve +++ b/support/texlogsieve/texlogsieve @@ -972,7 +972,7 @@ Options: --version print program version]] versionmsg = [[ -texlogsieve 1.3.0 +texlogsieve 1.3.1 Copyright (C) 2021, 2022 Nelson Lago License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. @@ -1037,21 +1037,29 @@ function processCommandLine(args) -- Add the default config file to the beginning of the list local filename = kpse.find_file('texlogsieverc') if filename ~= nil then table.insert(configFileNames, 1, filename) end + filename = nil if os.type == "unix" then - filename = kpse.find_file(os.getenv("HOME") .. "/.texlogsieverc") + local dirname = os.getenv("HOME") -- should never be nil, but... + if dirname then + filename = kpse.find_file(dirname .. "/.texlogsieverc") + end else -- https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables -- %LOCALAPPDATA% corresponds to C:\Users\\AppData\Local . - filename = kpse.find_file(os.getenv("%LOCALAPPDATA%") .. "/texlogsieverc") - if filename == nil then - -- %APPDATA% is "C:\Users\\AppData\Roaming" or - -- "C:\Documents and Settings\\Application Data" - filename = kpse.find_file(os.getenv("%APPDATA%") .. "/texlogsieverc") + -- %APPDATA% is "C:\Users\\AppData\Roaming" or + -- "C:\Documents and Settings\\Application Data" + for _, envdir in ipairs({"LOCALAPPDATA", "APPDATA"}) do + local dirname = os.getenv(envdir) + if dirname then + filename = kpse.find_file(dirname .. "/texlogsieverc") + if filename then break end + end end end if filename ~= nil then table.insert(configFileNames, 1, filename) end + filename = nil for _, filename in ipairs(configFileNames) do local configFile = assert(io.open(filename, "r")) diff --git a/support/texlogsieve/texlogsieve.1 b/support/texlogsieve/texlogsieve.1 index b39e33eff2..8aff5ee630 100644 --- a/support/texlogsieve/texlogsieve.1 +++ b/support/texlogsieve/texlogsieve.1 @@ -1,4 +1,4 @@ -.TH TEXLOGSIEVE "1" "August 2022" "texlogsieve 1.3.0" "User Commands" +.TH TEXLOGSIEVE "1" "September 2022" "texlogsieve 1.3.1" "User Commands" .SH NAME diff --git a/support/texlogsieve/texlogsieve.pdf b/support/texlogsieve/texlogsieve.pdf index 1891667c3d..4bfffed9c3 100644 Binary files a/support/texlogsieve/texlogsieve.pdf and b/support/texlogsieve/texlogsieve.pdf differ diff --git a/support/texlogsieve/texlogsieve.tex b/support/texlogsieve/texlogsieve.tex index 40323ceb2a..d44af80df9 100644 --- a/support/texlogsieve/texlogsieve.tex +++ b/support/texlogsieve/texlogsieve.tex @@ -92,12 +92,13 @@ \changes{1.3.0}{2022/08/05}{Add line number to parse error messages} \changes{1.3.0}{2022/08/05}{Add \texttt{-\/-verbose} option} \changes{1.3.0}{2022/08/05}{Search for a config file in the user's homedir too} +\changes{1.3.1}{2022/09/05}{Fix bug when searching for config files in Windows} \begin{document} \title{\textsf{texlogsieve}:\thanks{This document -corresponds to \textsf{texlogsieve}~1.3.0, -dated~2022-08-05.}\\[.3\baselineskip] +corresponds to \textsf{texlogsieve}~1.3.1, +dated~2022-09-05.}\\[.3\baselineskip] {\normalsize(yet another program to)\\[-.6\baselineskip]} {\large filter and summarize \LaTeX\ log files} } -- cgit v1.2.3