-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·55 lines (42 loc) · 967 Bytes
/
build.sh
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
#!/bin/bash
#
# builds everything without installing
#
# Modal AI Inc. 2019
# author: [email protected]
set -e
cd catkin_ws
AVAILABLE_PLATFORMS="qrb5165 apq8096"
print_usage(){
echo ""
echo " Build the current project based on platform target."
echo ""
echo " Usage:"
echo ""
echo " ./build.sh apq8096"
echo " Build 64-bit binaries for apq8096"
echo ""
echo " ./build.sh qrb5165"
echo " Build 64-bit binaries for qrb5165"
echo ""
echo ""
}
case "$1" in
apq8096)
ROS_DIST="indigo"
;;
qrb5165)
ROS_DIST="melodic"
;;
*)
print_usage
exit 1
;;
esac
. /opt/ros/${ROS_DIST}/setup.bash
catkin_make install -DCMAKE_BUILD_TYPE=Release
cd ..
mkdir -p misc_files/opt/ros/${ROS_DIST}/
cp -r catkin_ws/install/lib/ misc_files/opt/ros/${ROS_DIST}/
cp -r catkin_ws/install/share/ misc_files/opt/ros/${ROS_DIST}/
chmod -R 777 misc_files