]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Next/setup
Add linux-next specific files for 20131024
[karo-tx-linux.git] / Next / setup
1 #!/bin/bash
2
3 tail -n +5 < Next/Trees | while read tree type url; do
4         repository=${url%#*}
5         branch=${url#*#}
6
7         if test "x$type" != "xgit"; then
8                 echo "Don't know how to handle type $type trees, skipping..."
9                 continue
10         fi
11
12         git remote add -t $branch --no-tags $tree $repository > /dev/null 2>&1; ret=$?
13
14         if test $ret -eq 128; then
15                 echo "Remote $tree exists, skipping..."
16         else
17                 if test $ret -ne 0; then
18                         echo "Failed to add remote $tree: $ret"
19                 else
20                         echo "Remote $tree added"
21                 fi
22         fi
23 done