scons: massage {wml,cpp}.pot files with msgcat instead of just moving them

This commit is contained in:
loonycyborg 2016-03-05 04:41:35 +03:00
parent d891023737
commit fccb00b92d

View File

@ -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")