mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 05:38:11 +02:00
Using shell redirection to write to a file is more complicated than necessary, and has the potential to run into unicode encoding problems. It's also less code. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108530 v2: - update commit message to say less about LANG=C - use flags instead of positional arguments for the script (Emil) Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
14 lines
351 B
Python
14 lines
351 B
Python
Import('*')
|
|
|
|
from sys import executable as python_cmd
|
|
|
|
LOCALEDIR = env.Dir('.').srcnode().abspath
|
|
|
|
xmlpool_options, = env.CodeGenerate(
|
|
target = 'options.h',
|
|
script = 'gen_xmlpool.py',
|
|
source = ['t_options.h'],
|
|
command = python_cmd + ' $SCRIPT --template $SOURCE --output $TARGET --localedir ' + LOCALEDIR
|
|
)
|
|
|
|
Export('xmlpool_options')
|