summaryrefslogtreecommitdiff
path: root/patch
diff options
context:
space:
mode:
authorChristian Lütke Stetzkamp <christian@lkamp.de>2022-10-27 12:47:37 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-10-27 14:48:22 +0200
commitf24419a7cb95a38a4fe66b8c86b7cc059ebb8975 (patch)
tree1d50ac74b99ba4711d6143367e978da71e7ee1ef /patch
parentd46702ca599954864737a49b20cac20632bc37ba (diff)
downloadrules-cc-f24419a7cb95a38a4fe66b8c86b7cc059ebb8975.tar.gz
rules: Honor ENV for patch separation
Diffstat (limited to 'patch')
-rw-r--r--patch/RULES4
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"}
}