aboutsummaryrefslogtreecommitdiff
path: root/helpers/llvm-push
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/llvm-push')
-rwxr-xr-xhelpers/llvm-push21
1 files changed, 21 insertions, 0 deletions
diff --git a/helpers/llvm-push b/helpers/llvm-push
new file mode 100755
index 0000000..54fee83
--- /dev/null
+++ b/helpers/llvm-push
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+# Shorthand script for pushing the current branch to origin on all enabled llvm
+# subprojects. It calls llvm.py to do the actual work.
+
+prog=$(basename $0)
+progdir=$(dirname $0)
+llvmtool=$progdir/../scripts/llvm.py
+
+syntax() {
+ echo "Syntax: $prog"
+ echo "Push the current branch into the linaro-local namespace"
+ echo "Works for all enabled subprojects"
+}
+
+. llvm-common
+verify_env
+repos=$LLVM_ROOT/repos
+env=$(dirname $LLVM_SRC)
+
+safe_run python3 $llvmtool --repos $repos --env $env push