aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/xsyn.py
diff options
context:
space:
mode:
authorkakabba <kakabba@yandex-team.ru>2022-02-10 16:46:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:04 +0300
commitc8e3995898c443e78266f7420aac5fb3da15d413 (patch)
treea530e068cc107e227deccc80722204db63a4d75d /build/plugins/xsyn.py
parent110a978b66fe6c0916572df51cfead2a9b647174 (diff)
downloadydb-c8e3995898c443e78266f7420aac5fb3da15d413.tar.gz
Restoring authorship annotation for <kakabba@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/xsyn.py')
-rw-r--r--build/plugins/xsyn.py62
1 files changed, 31 insertions, 31 deletions
diff --git a/build/plugins/xsyn.py b/build/plugins/xsyn.py
index ab7c1639db..1e0d9ba0bc 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)