aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins
diff options
context:
space:
mode:
authorsamvel <samvel@yandex-team.ru>2022-02-10 16:51:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:40 +0300
commit368058fa36ac29dde5ef05db66072c998a47fb58 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /build/plugins
parent94750cc5802a241ad847ee112a12323934f36750 (diff)
downloadydb-368058fa36ac29dde5ef05db66072c998a47fb58.tar.gz
Restoring authorship annotation for <samvel@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins')
-rw-r--r--build/plugins/build_mn_files.py46
1 files changed, 23 insertions, 23 deletions
diff --git a/build/plugins/build_mn_files.py b/build/plugins/build_mn_files.py
index e5681fac4c..4da76f1852 100644
--- a/build/plugins/build_mn_files.py
+++ b/build/plugins/build_mn_files.py
@@ -1,29 +1,29 @@
-from os.path import basename, splitext
-
+from os.path import basename, splitext
+
def on_build_mns_files(unit, *args):
- files = []
- name = ''
- ranking_suffix = ''
- check = ''
- index = 0
+ files = []
+ name = ''
+ ranking_suffix = ''
+ check = ''
+ index = 0
fml_unused_tool = ''
- while index < len(args):
- if args[index] == 'NAME':
- index += 1
- name = args[index]
- elif args[index] == 'RANKING_SUFFIX':
- index += 1
- ranking_suffix = args[index]
- elif args[index] == 'CHECK':
- check = 'CHECK'
+ while index < len(args):
+ if args[index] == 'NAME':
+ index += 1
+ name = args[index]
+ elif args[index] == 'RANKING_SUFFIX':
+ index += 1
+ ranking_suffix = args[index]
+ elif args[index] == 'CHECK':
+ check = 'CHECK'
fml_unused_tool = unit.get('FML_UNUSED_TOOL') or '$FML_UNUSED_TOOL'
- else:
- files.append(args[index])
- index += 1
-
- for filename in files:
- file_basename, _ = splitext(basename(filename))
+ else:
+ files.append(args[index])
+ index += 1
+
+ for filename in files:
+ file_basename, _ = splitext(basename(filename))
asmdataname = "staticMn{0}{1}Ptr".format(ranking_suffix, file_basename)
- output_name = 'mn.staticMn{0}{1}Ptr.cpp'.format(ranking_suffix, file_basename)
+ output_name = 'mn.staticMn{0}{1}Ptr.cpp'.format(ranking_suffix, file_basename)
unit.on_build_mns_file([filename, name, output_name, ranking_suffix, check, fml_unused_tool, asmdataname])