#!/bin/sh cd ~/chromiumos usage() { cat <<-EOF Usage: repo-cros [command opts] Commands: int switch to internal tree ext switch to external tree -b switch branches EOF exit ${1:-1} } [[ $# -eq 0 ]] && usage vexec() { echo "$@"; exec "$@"; } while [[ $# -gt 0 ]] ; do case $1 in int) vexec repo init -u ssh://gerrit-int.chromium.org:29419/chromeos/manifest-internal.git --repo-url='http://git.chromium.org/external/repo.git' ;; ext) vexec repo init -u http://git.chromium.org/chromiumos/manifest.git --repo-url http://git.chromium.org/external/repo.git ;; -b) vexec repo init -b $2 ;; *) usage ;; esac done exit 0