forked from lbt/useful-scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmint-from-git.sh
83 lines (76 loc) · 2.13 KB
/
mint-from-git.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
[email protected]:MeeGoIntegration
[email protected]:meego-infrastructure-tools
declare -A UPSTREAM
UPSTREAM[ruote]=git://github.com/jmettraux/ruote.git
UPSTREAM[parslet]=git://github.com/kschiess/parslet.git
UPSTREAM[sourcify]=git://github.com/ngty/sourcify.git
UPSTREAM[rufus-json]=git://github.com/jmettraux/rufus-json.git
UPSTREAM[rufus-cloche]=git://github.com/jmettraux/rufus-cloche.git
UPSTREAM[rufus-mnemo]=git://github.com/jmettraux/rufus-mnemo.git
UPSTREAM[rufus-scheduler]=git://github.com/jmettraux/rufus-scheduler.git
UPSTREAM[ruote-kit]=git://github.com/kennethkalmer/ruote-kit.git
UPSTREAM[sinatra-respond_to]=git://github.com/cehoffman/sinatra-respond_to.git
UPSTREAM[sinatra]=git://github.com/sinatra/sinatra.git
UPSTREAM[haml]=git://github.com/nex3/haml.git
UPSTREAM[tilt]=https://github.com/rtomayko/tilt
UPSTREAM[rack]=git://github.com/rack/rack.git
UPSTREAM[rack-protection]=git://github.com/rkh/rack-protection.git
UPSTREAM[inifile]=git://github.com/MeeGoIntegration/inifile.git
UPSTREAM[amqp]=git://github.com/ruby-amqp/amqp.git
UPSTREAM[amq-client]=git://github.com/ruby-amqp/amq-client.git
UPSTREAM[amq-protocol]=git://github.com/ruby-amqp/amq-protocol.git
mkdir -p mint/github mint/gitorious
pushd mint/github
for name in \
ruote\
parslet\
sourcify\
rufus-json\
rufus-cloche\
rufus-mnemo\
rufus-scheduler\
ruote-kit\
sinatra\
haml\
tilt\
rack\
rack-protection\
inifile\
amqp\
amq-client\
amq-protocol
do
if [ -e $name ]; then
echo "$name already exists, skipping"
continue
fi
echo "Fetching $name ..."
git clone $MINT_GITHUB/$name.git ruby-$name
pushd ruby-$name
git remote add upstream ${UPSTREAM[$name]}
git fetch upstream
popd
echo
done
popd
pushd mint/gitorious
for name in \
boss\
imger\
revs\
ruote-amqp-pyclient\
python-buildservice\
python-boss-skynet\
boss-viewer\
boss-standard-workflow
do
if [ -e $name ]; then
echo "$name already exists, skipping"
continue
fi
echo "Fetching $name ..."
git clone $MINT_GITORIOUS/$name.git
echo
done
popd