summaryrefslogtreecommitdiff
path: root/CC/foreign/shell/EXPRESSIONS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-11-03 12:49:48 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-11-20 16:01:56 +0100
commit527de836e8b7217145ccbc2bc27c7bc87e3dc7f6 (patch)
treeb2ac69c7a15d4f6009f53f16902d81723bc62554 /CC/foreign/shell/EXPRESSIONS
parent4e86f756bddca8db402502be47c0825e1e2aeb0d (diff)
downloadrules-cc-527de836e8b7217145ccbc2bc27c7bc87e3dc7f6.tar.gz
foreign: Only resolve symlinks on user request
Diffstat (limited to 'CC/foreign/shell/EXPRESSIONS')
-rw-r--r--CC/foreign/shell/EXPRESSIONS11
1 files changed, 8 insertions, 3 deletions
diff --git a/CC/foreign/shell/EXPRESSIONS b/CC/foreign/shell/EXPRESSIONS
index be6f797..3836388 100644
--- a/CC/foreign/shell/EXPRESSIONS
+++ b/CC/foreign/shell/EXPRESSIONS
@@ -19,6 +19,7 @@
, "BUILD_POSITION_INDEPENDENT"
, "TIMEOUT_SCALE"
, "expand_exec"
+ , "resolve_symlinks"
]
, "imports":
{ "artifacts": ["", "field_artifacts"]
@@ -287,9 +288,13 @@
, ["(", "set --", "cd ./work"]
, {"type": "var", "name": "cmds"}
, [")"]
- , [ "mv install install_with_symlinks"
- , "cp -rL install_with_symlinks install"
- ]
+ , { "type": "if"
+ , "cond": {"type": "var", "name": "resolve_symlinks"}
+ , "then":
+ [ "mv install install_with_symlinks"
+ , "cp -rL install_with_symlinks install >copy.log 2>&1 || (echo 'ERROR: symlink resolve failed with:' && cat copy.log && exit 1)"
+ ]
+ }
]
}
}