-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathmanage.sh
More file actions
executable file
·24 lines (19 loc) · 1.04 KB
/
manage.sh
File metadata and controls
executable file
·24 lines (19 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -o errexit -o nounset -o pipefail
source "$(dirname ${BASH_SOURCE[0]})/../common.sh"
readonly script_dir=$(dirname "$(realpath ${BASH_SOURCE[0]})")
[[ ! $# -eq 1 ]] && user_error "expected 1 argument, add-aosp-remotes|fetch-aosp-tags|fork-all-graphene|rebase-all-graphene|get-all-graphene-paths"
readonly action=$1
if [[ $action == "add-aosp-remotes" ]]; then
repo forall -v -e -p -c "${script_dir}/repo-add-aosp-remotes.sh"
elif [[ $action == "fetch-aosp-tags" ]]; then
repo forall -v -e -p -c "${script_dir}/repo-fetch-aosp-tags.sh"
elif [[ $action == "fork-all-graphene" ]]; then
repo forall -v -e -p -c "${script_dir}/repo-fork-all-graphene.sh"
elif [[ $action == "rebase-all-graphene" ]]; then
repo forall -v -e -p -c "${script_dir}/repo-rebase-all-graphene.sh"
elif [[ $action == "get-all-graphene-paths" ]]; then
repo forall -v -e -c "${script_dir}/repo-get-all-graphene-paths.sh"
else
user_error "unrecognized action, expected add-aosp-remotes|fetch-aosp-tags|fork-all-graphene|rebase-all-graphene|get-all-graphene-paths"
fi