util/gen_xmlpool: Don't write via shell redirection
authorDylan Baker <dylan@pnwbakers.com>
Wed, 24 Oct 2018 19:20:48 +0000 (12:20 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 31 Oct 2018 23:37:46 +0000 (16:37 -0700)
commitb9cd81ea3189ffdf847377ebbc11a676dc302a6f
tree4a0566df4b27d29652dbd735d79fd58c5539933e
parent1df086662a993340127637f88cfe0462b48e66c8
util/gen_xmlpool: Don't write via shell redirection

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>
src/util/Android.mk
src/util/xmlpool/Makefile.am
src/util/xmlpool/SConscript
src/util/xmlpool/gen_xmlpool.py
src/util/xmlpool/meson.build