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 | f24419a7cb95a38a4fe66b8c86b7cc059ebb8975 (patch) | |
tree | 1d50ac74b99ba4711d6143367e978da71e7ee1ef /patch | |
parent | d46702ca599954864737a49b20cac20632bc37ba (diff) | |
download | rules-cc-f24419a7cb95a38a4fe66b8c86b7cc059ebb8975.tar.gz |
rules: Honor ENV for patch separation
Diffstat (limited to 'patch')
-rw-r--r-- | patch/RULES | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/patch/RULES b/patch/RULES index ab5f102..bba83c2 100644 --- a/patch/RULES +++ b/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"} } |