From fccb00b92d3ff3fe6eaa6da326d87dde92ac2891 Mon Sep 17 00:00:00 2001 From: loonycyborg Date: Sat, 5 Mar 2016 04:41:35 +0300 Subject: [PATCH] scons: massage {wml,cpp}.pot files with msgcat instead of just moving them --- po/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/SConscript b/po/SConscript index 01859bf7d2e..5bb3058313d 100644 --- a/po/SConscript +++ b/po/SConscript @@ -86,9 +86,9 @@ if "pot-update" in COMMAND_LINE_TARGETS: ] ) elif cfgs: - env.Command(new_pot, wml_pot, Move("$TARGET", "$SOURCE")) + env.Command(new_pot, wml_pot, ["msgcat --sort-by-file $SOURCES -o $TARGET", Delete(wml_pot)]) else: - env.Command(new_pot, source_pot, Move("$TARGET", "$SOURCE")) + env.Command(new_pot, source_pot, ["msgcat --sort-by-file $SOURCES -o $TARGET", Delete(source_pot)]) env.Command(pot, new_pot, Action(update_pot)) env.Alias("pot-update", "../translations")