scons recipe: added targets to generate dummy locales.
This commit is contained in:
parent
5b06aba4fc
commit
97d797b258
1 changed files with 17 additions and 0 deletions
17
SConstruct
17
SConstruct
|
@ -1001,6 +1001,23 @@ if "update-po" in COMMAND_LINE_TARGETS or "pot-update" in COMMAND_LINE_TARGETS:
|
|||
|
||||
env.Alias("update-po", [])
|
||||
|
||||
#
|
||||
# Dummy locales
|
||||
#
|
||||
|
||||
if env["dummy_locales"]:
|
||||
env.Command(Dir("locales/C"), [], "-mkdir -p locales;echo | localedef --force \"$TARGET\" 2> /dev/null")
|
||||
language_cfg_re = re.compile(r"data/languages/(.*)\.cfg")
|
||||
language_cfgs = glob("data/languages/*.cfg")
|
||||
languages = Flatten(map(language_cfg_re.findall, language_cfgs))
|
||||
languages = map(lambda x: x + "@wesnoth", languages)
|
||||
for language in languages:
|
||||
env.Command(
|
||||
os.path.join("locales", language),
|
||||
"locales/C",
|
||||
"ln -sf $SOURCE.filebase $TARGET"
|
||||
)
|
||||
|
||||
#
|
||||
# Unix installation productions
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue