-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompile
executable file
·49 lines (42 loc) · 1.47 KB
/
compile
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
#!/bin/bash
# Runs catkin_make with the correct whitelist entries.
# beagle = all packages for the beagle bone
# mm_p = Mouse Monitor for pc
# mm_b = Mouse Monitor for beagle bone
# pc = All other pc packages
START_DIR=$PWD
BASEDIR=$(dirname $0)
cd $BASEDIR
if [ -z "$1" ]
then
echo "Give packages to compile."
fi
if [ "$1" == "beagle" ]
then
sudo ntpdate -b -s -u ntp.ubuntu.com pool.ntp.org
catkin_make -DCATKIN_WHITELIST_PACKAGES="minotaur_common;robot_control;minotaur_maze" -DUSE_MOUSE_SENSOR="TRUE" -DARM_ARCH="TRUE"
elif [ "$1" == "mm_p" ]
then
catkin_make -DCATKIN_WHITELIST_PACKAGES="minotaur_common;mouse_monitor_beagle;mouse_monitor_pc"
elif [ "$1" == "mm_b" ]
then
sudo ntpdate -b -s -u ntp.ubuntu.com pool.ntp.org
catkin_make -DCATKIN_WHITELIST_PACKAGES="minotaur_common;mouse_monitor_beagle" -DUSE_MOUSE_SENSOR="TRUE"
elif [ "$1" == "pc" ]
then
catkin_make -DCATKIN_WHITELIST_PACKAGES="minotaur_common;minotaur_common_qt;minotaur_map;minotaur_maze;minotaur_teleop;pid_monitor;map_monitor;"
elif [ "$1" == "maze" ]
then
catkin_make -DCATKIN_WHITELIST_PACKAGES="minotaur_common;robot_control;minotaur_maze"
elif [ "$1" == "all" ]
then
catkin_make -DCATKIN_WHITELIST_PACKAGES="minotaur_common;minotaur_common_qt;robot_control;pid_monitor;minotaur_maze;minotaur_map;map_monitor;minotaur_teleop" -DUSE_MOUSE_SENSOR="TRUE" -DBUILD_TEST_FILES="TRUE"
elif [ "$1" == "doxy" ]
then
cd doc
doxygen Doxyfile
elif [ "$1" == "clean" ]
then
rm -rf devel/ build/
fi
cd $START_DIR