|
|
@ -18,6 +18,7 @@ import shutil |
|
|
|
import argparse |
|
|
|
import argparse |
|
|
|
from .. import mlog |
|
|
|
from .. import mlog |
|
|
|
from . import destdir_join |
|
|
|
from . import destdir_join |
|
|
|
|
|
|
|
from .gettext import read_linguas |
|
|
|
|
|
|
|
|
|
|
|
parser = argparse.ArgumentParser() |
|
|
|
parser = argparse.ArgumentParser() |
|
|
|
parser.add_argument('command') |
|
|
|
parser.add_argument('command') |
|
|
@ -108,6 +109,9 @@ def run(args): |
|
|
|
build_subdir = os.path.join(os.environ['MESON_BUILD_ROOT'], options.subdir) |
|
|
|
build_subdir = os.path.join(os.environ['MESON_BUILD_ROOT'], options.subdir) |
|
|
|
abs_sources = [os.path.join(src_subdir, 'C', source) for source in sources] |
|
|
|
abs_sources = [os.path.join(src_subdir, 'C', source) for source in sources] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not langs: |
|
|
|
|
|
|
|
langs = read_linguas(src_subdir) |
|
|
|
|
|
|
|
|
|
|
|
if options.command == 'pot': |
|
|
|
if options.command == 'pot': |
|
|
|
build_pot(src_subdir, options.project_id, sources) |
|
|
|
build_pot(src_subdir, options.project_id, sources) |
|
|
|
elif options.command == 'update-po': |
|
|
|
elif options.command == 'update-po': |
|
|
|