-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdateSW
More file actions
executable file
·64 lines (50 loc) · 1.37 KB
/
updateSW
File metadata and controls
executable file
·64 lines (50 loc) · 1.37 KB
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
#!/bin/bash
# This script updates all the Virtual Machine software ie:
# omegalib
# several modules
# bino
# Equalizer
# drishti
# [Darren 29Aug16]
# check that this script is run as root
if (( $EUID != 0 )); then
echo "Please run $0 as root, ie. 'sudo $0'"
exit
fi
echo "Updates omegalib only (WIP)"
# figure out number of processors in VM, and use one less for compiling
MAX_PROCS=`cat /proc/cpuinfo | grep processor | wc -l`
PROCS=$(($MAX_PROCS - 1))
PROCS=$(($PROCS > 0 ? $PROCS : 1 ))
export OMEGA_DIR=/local/omegalib
export REPOS="
omegalib
omegalib/omicron
"
cd /local
for REPO_NAME in $REPOS
do
if [[ -d $REPO_NAME ]]; then
pushd $REPO_NAME
/usr/bin/sudo -u davm -- /usr/bin/git pull origin master
popd
fi
done
# omegalib submodules updated here..
cd /local/omegalib/modules
/usr/bin/sudo -u davm ./mpull
# omegalib building
cd /local/omegalib/build
# make omicron build without vrpn (WIP)
pushd omicron/omicron && { /usr/bin/sudo -u davm -- cmake -DOMICRON_USE_VRPN=false . ; popd; }
# set executable permissions on libraries/executables (only if successful)
# do it this way to overcome dependecy issue with omegaOsgEarth (WIP)
/usr/bin/sudo -u davm -- make -kj$PROCS
/usr/bin/sudo -u davm -- make -kj$PROCS install && chmod -R +x $OMEGA_DIR/install/omegalib/bin/
## TODO
# Bino update
# Equalizer update
# drishti update
# paraview update
# additional software
exit