Source

pyGAP / game / assets / common / texts / wscript

Full commit
#! /usr/bin/env python
# encoding: utf-8

from tools import utils
from tools.compilers import csv_text


def build(bld):
    bld(name='texts', rule=csv_text.run, color='CYAN',
        source=bld.path.ant_glob('**/*.csv'))

    bld.add_group()
    for lang in bld.env.languages:
        bld.declare_chain(
            name='compress_texts',
            rule=utils.compress,
            color='BLUE',
            ext_in='.%s' % lang,
            ext_out='.%sz' % lang,
            reentrant=False,
        )
    bld(dynamic_source=' '.join('**/*.%s' % lang
                                for lang in bld.env.languages))