]> git.wh0rd.org - home.git/blame - .bin/cros-repo
my chromeos helpers
[home.git] / .bin / cros-repo
CommitLineData
3c347239
MF
1#!/bin/sh
2cd ~/chromiumos
3
4usage() {
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
17vexec() { echo "$@"; exec "$@"; }
18
19while [[ $# -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
26done
27exit 0