forked from external/yambar
meson: run generate_version.sh in a C locale
Previously, only the date command inside the script was run with LC_TIME=C. But there’s no reason to be that conservative; we absolutely do not want _anything_ in that script to generate locale dependent output.
This commit is contained in:
parent
427e0ce418
commit
b8dd247111
2 changed files with 3 additions and 2 deletions
|
@ -95,12 +95,13 @@ subdir('decorations')
|
|||
subdir('particles')
|
||||
subdir('modules')
|
||||
|
||||
env = find_program('env', native: true)
|
||||
generate_version_sh = files('generate-version.sh')
|
||||
version = custom_target(
|
||||
'generate_version',
|
||||
build_always_stale: true,
|
||||
output: 'version.h',
|
||||
command: [generate_version_sh, meson.project_version(), '@SOURCE_ROOT@', '@OUTPUT@'])
|
||||
command: [env, 'LC_ALL=C', generate_version_sh, meson.project_version(), '@SOURCE_ROOT@', '@OUTPUT@'])
|
||||
|
||||
yambar = executable(
|
||||
'yambar',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue