%Lyluatex LaTeX class for the manual.
%
% Copyright (C) 2015-2023 jperon and others (see CONTRIBUTORS.md)
% License: MIT
% This file is part of lyluatex.
\newcommand{\lyluatexmanualdate}{
\directlua{
local PC = string.char(37)
local date_fmt = PC..'Y-'..PC..'m-'..PC..'d'
local p = io.popen('git log -n1 --date=short --format='..PC..'"ad"', 'r')
tex.sprint(p and p:read('*a'):sub(1,-2) or os.date(date_fmt))
if p then p:close() end
}
}