aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/res.py
diff options
context:
space:
mode:
authorspreis <spreis@yandex-team.ru>2022-02-10 16:47:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:13 +0300
commitbcd1126cbd5d445cd0665d295198aa39c6ab8cbe (patch)
treed41d29a041d5733ef148335290dbb817b197d4cd /build/plugins/res.py
parent986cb5d624f352524bfa0c42c9a7695235cdaa41 (diff)
downloadydb-bcd1126cbd5d445cd0665d295198aa39c6ab8cbe.tar.gz
Restoring authorship annotation for <spreis@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/res.py')
-rw-r--r--build/plugins/res.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/build/plugins/res.py b/build/plugins/res.py
index a937caba81..d5f0a98826 100644
--- a/build/plugins/res.py
+++ b/build/plugins/res.py
@@ -52,10 +52,10 @@ def onfat_resource(unit, *args):
def onresource_files(unit, *args):
"""
- @usage: RESOURCE_FILES([DONT_PARSE] [PREFIX {prefix}] [STRIP prefix_to_strip] {path})
-
- This macro expands into
- RESOURCE([DONT_PARSE] {path} resfs/file/{prefix}{path}
+ @usage: RESOURCE_FILES([DONT_PARSE] [PREFIX {prefix}] [STRIP prefix_to_strip] {path})
+
+ This macro expands into
+ RESOURCE([DONT_PARSE] {path} resfs/file/{prefix}{path}
- resfs/src/resfs/file/{prefix}{remove_prefix(path, prefix_to_strip)}={rootrel_arc_src(path)}
)
@@ -65,28 +65,28 @@ def onresource_files(unit, *args):
resfs/file/{key} stores any value whose source was a file on a filesystem.
resfs/src/resfs/file/{key} must store its path.
- DONT_PARSE disables parsing for source code files (determined by extension)
- Please don't abuse: use separate DONT_PARSE macro call only for files subject to parsing
-
+ DONT_PARSE disables parsing for source code files (determined by extension)
+ Please don't abuse: use separate DONT_PARSE macro call only for files subject to parsing
+
This form is for use from other plugins:
RESOURCE_FILES([DEST {dest}] {path}) expands into RESOURCE({path} resfs/file/{dest})
-
- @see: https://wiki.yandex-team.ru/devtools/commandsandvars/resourcefiles/
+
+ @see: https://wiki.yandex-team.ru/devtools/commandsandvars/resourcefiles/
"""
prefix = ''
prefix_to_strip = None
dest = None
res = []
- first = 0
+ first = 0
if args and not unit.enabled('_GO_MODULE'):
# GO_RESOURCE currently doesn't support DONT_PARSE
res.append('DONT_PARSE')
- if args and args[0] == 'DONT_PARSE':
- first = 1
+ if args and args[0] == 'DONT_PARSE':
+ first = 1
- args = iter(args[first:])
+ args = iter(args[first:])
for arg in args:
if arg == 'PREFIX':
prefix, dest = next(args), None