diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-25 23:31:57 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-26 01:09:37 +0300 |
commit | 3b3c05f6b1c88d202b2166dca4b8e2937feebf27 (patch) | |
tree | 5672600a5ac6f56b012900325e8e923cfec918fd /mesonbuild/scripts/gettext.py | |
parent | d8e08224da6045460879068fd07cc3f6c6d3fc51 (diff) | |
download | meson-3b3c05f6b1c88d202b2166dca4b8e2937feebf27.zip meson-3b3c05f6b1c88d202b2166dca4b8e2937feebf27.tar.gz meson-3b3c05f6b1c88d202b2166dca4b8e2937feebf27.tar.bz2 |
Can pass extra args to xgettext. Closes #554.
Diffstat (limited to 'mesonbuild/scripts/gettext.py')
-rw-r--r-- | mesonbuild/scripts/gettext.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/scripts/gettext.py b/mesonbuild/scripts/gettext.py index adc4483..d8b2a9c 100644 --- a/mesonbuild/scripts/gettext.py +++ b/mesonbuild/scripts/gettext.py @@ -16,11 +16,11 @@ import os, subprocess, shutil -def run_potgen(src_sub, pkgname, langs): +def run_potgen(src_sub, pkgname, args): listfile = os.path.join(src_sub, 'POTFILES') ofile = os.path.join(src_sub, pkgname + '.pot') - return subprocess.call(['xgettext', '--package-name=' + pkgname, '-p', src_sub, listfile, - '-D', os.environ['MESON_SOURCE_ROOT'], '-k_', '-o', ofile]) + return subprocess.call(['xgettext', '--package-name=' + pkgname, '-p', src_sub, '-f', listfile, + '-D', os.environ['MESON_SOURCE_ROOT'], '-k_', '-o', ofile] + args) def gen_gmo(src_sub, bld_sub, langs): for l in langs: |