diff options
author | Christian Lütke Stetzkamp <christian@lkamp.de> | 2022-10-27 12:47:37 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-10-27 14:48:22 +0200 |
commit | d73c6fe9f385596469aa9897a51913a3fbdbd1c4 (patch) | |
tree | df66d10ff699003e5fd1bba0b8498d86809dec96 /rules | |
parent | 0eadefbbb58c7feaf6a69c7307dc93d2daabe3ce (diff) | |
download | justbuild-d73c6fe9f385596469aa9897a51913a3fbdbd1c4.tar.gz |
rules: Honor ENV for patch separation
Diffstat (limited to 'rules')
-rw-r--r-- | rules/patch/RULES | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/patch/RULES b/rules/patch/RULES index ab5f102f..bba83c21 100644 --- a/rules/patch/RULES +++ b/rules/patch/RULES @@ -2,7 +2,7 @@ { "doc": ["Replace a file, logically in place, by a patched version"] , "target_fields": ["src", "patch"] , "string_fields": ["patch-part"] - , "config_vars": ["PATCH"] + , "config_vars": ["PATCH", "ENV"] , "field_doc": { "src": ["The single source file to patch, typically an explict file reference."] @@ -91,6 +91,8 @@ } , "outs": ["patch"] , "cmd": ["sh", "./splitpatch", "in/patch"] + , "env": + {"type": "var", "name": "ENV", "default": {"type": "empty_map"}} } , "else": {"type": "var", "name": "patch"} } |