-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_qt5
More file actions
executable file
·42 lines (36 loc) · 856 Bytes
/
setup_qt5
File metadata and controls
executable file
·42 lines (36 loc) · 856 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/sh
#
numargs=$#
this_script=$0
username=$1
. ./source_me
# qt5
########################################################################################################
#./setup_qt5 $username
cd $BASE_DIR
sudo -u $username git clone git://gitorious.org/qt/qt5.git $BASE_DIR/qt5
if [ "$?" -ne 0 ]; then
exit $?
fi
cd $BASE_DIR/qt5
sudo -u $username ./init-repository --no-webkit
if [ "$?" -ne 0 ]; then
exit $?
fi
cd $BASE_DIR
sudo -u $username mkdir $BASE_DIR/qtbuild
cd $BASE_DIR/qtbuild
sudo -u $username $BASE_DIR/qt5/configure -no-gtkstyle -opensource -confirm-license
if [ "$?" -ne 0 ]; then
exit $?
fi
sudo -u $username make
if [ "$?" -ne 0 ]; then
exit $?
fi
make install
if [ "$?" -ne 0 ]; then
exit $?
fi
cd $BASE_DIR
########################################################################################################