-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclone-sources.sh
More file actions
executable file
·44 lines (31 loc) · 985 Bytes
/
clone-sources.sh
File metadata and controls
executable file
·44 lines (31 loc) · 985 Bytes
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
#!/bin/bash
set -e
d=`dirname $0`
. $d/common.sh
qt5hash=$(cat $d/qt5-pinned-hash)
qtcomponentshash=$(cat $d/qt-components-pinned-hash)
echo "Get the sources..."
cd $shared_dir
if [ -e ${qt5_dir} ]; then
echo "$qt5_dir already exists, you should probably run update-sources.sh"
else
git clone git@gitorious.org:qt/qt5.git qt5
cd qt5
git checkout $qt5hash
./init-repository --module-subset=qtbase,qtxmlpatterns,qtjsbackend,qtdeclarative,qtsensors,qtimageformats
fi
cd $shared_dir
if [ -e ${qtcomponents_dir} ]; then
echo "$qtcomponents_dir already exists, you should probably run update-sources.sh"
else
git clone -b qtquick2 git@gitorious.org:qt-components/qt-components.git qt-components
cd qt-components
git checkout $qtcomponentshash
fi
cd $shared_dir
if [ -e ${webkit_dir} ]; then
echo "$webkit_dir already exists, you should probably run update-sources.sh"
else
git clone git@gitorious.org:webkit/webkit.git
fi
echo "Done"