-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup_qwtplot3d
executable file
·48 lines (37 loc) · 936 Bytes
/
setup_qwtplot3d
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
#!/bin/sh
#
numargs=$#
this_script=$0
username=$1
. ./source_me
# qwtplot3d
########################################################################################################
#./setup_qwtplot3d $username
cd $BASE_DIR/
sudo -u $username wget -nc http://sourceforge.net/projects/qwtplot3d/files/qwtplot3d/0.2.7/qwtplot3d-0.2.7.tgz
if [ "$?" -ne 0 ]; then
exit $?
fi
sudo -u $username tar xvf qwtplot3d-0.2.7.tgz
if [ "$?" -ne 0 ]; then
exit $?
fi
sudo -u $username patch -N qwtplot3d/include/qwt3d_openglhelper.h < openmining/third_party_patches/patch.qwt3d_openglhelper.h
if [ "$?" -ne 0 ]; then
exit $?
fi
cd qwtplot3d
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
cd $BASE_DIR
#########################################################################################################