-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup_qt3d
executable file
·51 lines (39 loc) · 937 Bytes
/
setup_qt3d
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
#!/bin/sh
# run as: sudo ./setup_qt3d $USER
numargs=$#
this_script=$0
username=$1
. ./source_me
if [ "$numargs" = 0 ]; then
username=$USER
echo "re-running script as root..."
sudo ./$this_script $USER # re-run this script as root, passing in the username of the original caller
echo "finished running as root."
exit $?
fi
if [ "$?" -ne 0 ]; then
exit $?
fi
# qt3d
########################################################################################################
#./setup_qt3d $username
cd $BASE_DIR
sudo -u $username git clone git://gitorious.org/qt/qt3d.git
#if [ "$?" -ne 0 ]; then
# exit $?
#fi
echo $PATH
cd $BASE_DIR/qt3d
#patch -N src/threed/painting/qglpainter.cpp < ../openmining/third_party_patches/patch.qglpainter.cpp
sudo -u $username $QMAKE
if [ "$?" -ne 0 ]; then
exit $?
fi
sudo -u $username make
if [ "$?" -ne 0 ]; then
exit $?
fi
make install
if [ "$?" -ne 0 ]; then
exit $?
fi