summaryrefslogtreecommitdiffstats
path: root/build/plugins/res.py
diff options
context:
space:
mode:
authorspreis <[email protected]>2022-02-10 16:47:13 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:13 +0300
commitb49848d6e361b76904f094b7d5e10d6edea75afe (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /build/plugins/res.py
parentbcd1126cbd5d445cd0665d295198aa39c6ab8cbe (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 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 d5f0a988263..a937caba816 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