]>
Commit | Line | Data |
---|---|---|
3c347239 MF |
1 | #!/bin/sh |
2 | cd ~/chromiumos | |
3 | ||
4 | usage() { | |
5 | cat <<-EOF | |
6 | Usage: repo-cros <command> [command opts] | |
7 | ||
8 | Commands: | |
9 | int switch to internal tree | |
10 | ext switch to external tree | |
11 | -b <branch> switch branches | |
12 | EOF | |
13 | exit ${1:-1} | |
14 | } | |
15 | [[ $# -eq 0 ]] && usage | |
16 | ||
17 | vexec() { echo "$@"; exec "$@"; } | |
18 | ||
19 | while [[ $# -gt 0 ]] ; do | |
20 | case $1 in | |
21 | int) vexec repo init -u ssh://gerrit-int.chromium.org:29419/chromeos/manifest-internal.git --repo-url='http://git.chromium.org/external/repo.git' ;; | |
22 | ext) vexec repo init -u http://git.chromium.org/chromiumos/manifest.git --repo-url http://git.chromium.org/external/repo.git ;; | |
23 | -b) vexec repo init -b $2 ;; | |
24 | *) usage ;; | |
25 | esac | |
26 | done | |
27 | exit 0 |