diff options
author | kakabba <kakabba@yandex-team.ru> | 2022-02-10 16:46:04 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:04 +0300 |
commit | 9c914f41ba5e9f9365f404e892197553ac23809e (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /build/plugins/xsyn.py | |
parent | c8e3995898c443e78266f7420aac5fb3da15d413 (diff) | |
download | ydb-9c914f41ba5e9f9365f404e892197553ac23809e.tar.gz |
Restoring authorship annotation for <kakabba@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins/xsyn.py')
-rw-r--r-- | build/plugins/xsyn.py | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/build/plugins/xsyn.py b/build/plugins/xsyn.py index 1e0d9ba0bc..ab7c1639db 100644 --- a/build/plugins/xsyn.py +++ b/build/plugins/xsyn.py @@ -1,34 +1,34 @@ -import _import_wrapper as iw -import _common as common - - -class Xsyn(iw.CustomCommand): - - def __init__(self, path, unit): - self._path = path - - def descr(self): - return 'XN', self._path, 'yellow' - - def tools(self): - return [] - - def input(self): - return common.make_tuples([ +import _import_wrapper as iw +import _common as common + + +class Xsyn(iw.CustomCommand): + + def __init__(self, path, unit): + self._path = path + + def descr(self): + return 'XN', self._path, 'yellow' + + def tools(self): + return [] + + def input(self): + return common.make_tuples([ '$S/library/cpp/xml/parslib/xsyn2ragel.py', - self._path, + self._path, '$S/library/cpp/xml/parslib/xmlpars.xh' - ]) - - def output(self): - return common.make_tuples([ - common.tobuilddir(self._path + '.h.rl5') - ]) - + ]) + + def output(self): + return common.make_tuples([ + common.tobuilddir(self._path + '.h.rl5') + ]) + def run(self, extra_args, interpeter): - self.call(interpeter + [self.resolve_path(common.get(self.input, 0)), self.resolve_path(common.get(self.input, 1)), - self.resolve_path(common.get(self.input, 2)), 'dontuse'], stdout=common.get(self.output, 0)) - - -def init(): - iw.addrule('xsyn', Xsyn) + self.call(interpeter + [self.resolve_path(common.get(self.input, 0)), self.resolve_path(common.get(self.input, 1)), + self.resolve_path(common.get(self.input, 2)), 'dontuse'], stdout=common.get(self.output, 0)) + + +def init(): + iw.addrule('xsyn', Xsyn) |