blob: 792907455d052be0f83bee58f92a52930c856d8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#! /bin/sh
branchfile=$1
shift
remote=$1
shift
if [ -z "$branchfile" -o -z "$remote" ] ; then
echo Usage $0 branchfile remote
echo branchfile containing branchnames without ref path
echo remote is your remote repo
exit 1
fi
for j in gluegen joal joal-demos jocl jocl-demos jogl jogl-demos ; do
cd $j
echo
echo MODULE $j
echo
for i in `cat $branchfile` ; do
git checkout --track -b $i $remote/$i
git checkout master
# git branch -r -D $i
done
cd ..
done
|