aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2018-10-30 15:34:19 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2018-10-30 16:03:41 +0000
commita93fd5ee24ebd5b19d4e2718e3e9db66b18f32a8 (patch)
treea38a30ce4ce13f8958132aa35ae48a79d2afc69a
parent797cb5d4459f9acab04d9e4c746e145ab09dfff5 (diff)
ssh-cc.sh: Add comments.
Make it clearer what the first code path is meant for. Change-Id: Ib4f26529ff23b85b6e56c265c137c9419b95fdda
-rw-r--r--ssh-cc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh-cc.sh b/ssh-cc.sh
index b50584f..95cab2a 100644
--- a/ssh-cc.sh
+++ b/ssh-cc.sh
@@ -5,6 +5,9 @@ set -e
cmd=$(echo "$@" | sed -e 's#"#\\"#g' -e "s#'#\\'#g")
dir=$(pwd)
+# This case is meant to quickly handle cases where $cmd="-v", in which
+# case there is no need to rsync sources. This allows configuration
+# scripts to run.
if ! echo $dir | grep -q @spec@/benchspec; then
exec ssh @build_port@ @build_host@ "cd $(pwd); exec @cc_prefix@@cc@ $cmd"
fi