forked from erik-nelson/blam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update
executable file
·28 lines (25 loc) · 832 Bytes
/
update
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
#!/bin/bash
TOP_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Compile third party packages.
cd ${TOP_DIR}/external
echo 'Creating a ROS workspace for third party packages.'
if [ ! -d "./src" ]; then
wstool init src
fi
wstool merge -t src blam-external.rosinstall
wstool up -t src
catkin_make_isolated --install --cmake-args -DCMAKE_BUILD_TYPE=Release
if [ ! -d "./install_isolated" ]; then
touch ${TOP_DIR}/external/install_isolated/.catkin
source ${TOP_DIR}/external/install_isolated/setup.bash
fi
# Compile BLAM packages.
cd ${TOP_DIR}/internal
echo 'Creating a ROS workspace for BLAM packages.'
if [ ! -d "./src" ]; then
wstool init src
fi
wstool merge -t src blam-internal.rosinstall
wstool up -t src
catkin_make --cmake-args -DCMAKE_BUILD_TYPE=Release
source ${TOP_DIR}/internal/devel/setup.bash --extend