meson: Get date with Python on authors.md generation

This commit is contained in:
Bruno Lopes 2025-04-17 14:49:01 -03:00
parent d88966b272
commit 30f1a34750
No known key found for this signature in database

View file

@ -1867,7 +1867,7 @@ custom_target('AUTHORS',
],
build_by_default: false,
)
date = run_command('date', '-u', '+%Y-%m-%dT%H:%M:%SZ', check: true)
date = run_command(python, '-c', 'import datetime; print(datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"))', check: true)
custom_target('authors.md',
input : [ 'authors4gimp-web.xsl', 'authors.xml', ],
output: 'authors.md',
@ -1877,7 +1877,7 @@ custom_target('authors.md',
'-o', '@OUTPUT@',
'@INPUT@',
],
build_by_default: false,
build_by_default: true,
)
if xmllint.found()