Diana Picus | 7fefe1e | 2017-10-31 16:04:27 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Shorthand script for pushing the current branch to origin on all enabled llvm |
| 4 | # subprojects. It calls llvm.py to do the actual work. |
| 5 | |
| 6 | prog=$(basename $0) |
| 7 | progdir=$(dirname $0) |
| 8 | llvmtool=$progdir/../scripts/llvm.py |
| 9 | |
| 10 | syntax() { |
| 11 | echo "Syntax: $prog" |
| 12 | echo "Push the current branch into the linaro-local namespace" |
| 13 | echo "Works for all enabled subprojects" |
| 14 | } |
| 15 | |
| 16 | . llvm-common |
| 17 | verify_env |
| 18 | repos=$LLVM_ROOT/repos |
Diana Picus | 9f75686 | 2017-12-20 10:35:08 +0100 | [diff] [blame] | 19 | source_dir=$LLVM_SRC |
Diana Picus | 7fefe1e | 2017-10-31 16:04:27 +0100 | [diff] [blame] | 20 | |
Diana Picus | 9f75686 | 2017-12-20 10:35:08 +0100 | [diff] [blame] | 21 | safe_run python3 $llvmtool push --source-dir $source_dir |