]> git.ozlabs.org Git - next-scripts/blob - add_repo
do_build: use the Debian standard cross compilers
[next-scripts] / add_repo
1 #!/bin/bash
2
3 name=$1
4 url=$2
5 branch=$3
6 [[ -z "$name" ]] && {
7         echo "Need a remote name" 1>&2
8         exit 1
9 }
10 [[ -z "$url" ]] && {
11         echo "Need a URL" 1>&2
12         exit 1
13 }
14 [[ -z "$branch" ]] && branch="master"
15
16 git remote add --no-tags -t "$branch" "$name" "$url"
17
18 cp .git/config ../etc/git-config
19
20 exit 0