forked from kylevedder/ServiceRobotControlStack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·37 lines (30 loc) · 837 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
#!/usr/bin/env bash
if [ "$CC_FOR_BUILD" == "gcc" ]; then
echo "Using GCC"
export CC=`which gcc`
export CXX=`which g++`
else
echo "Using Clang"
export CC=`which clang`
export CXX=`which clang++`
fi
source /opt/ros/$ROS_DISTRO/setup.bash
failed=0
pushd catkin_ws
catkin_make
if [ "$?" -ne "0" ]; then failed=1; fi
popd
if [ "$failed" -ne "0" ]; then exit 1; fi
catkin_ws/devel/lib/control_stack/control_stack_unit_tests
if [ "$?" -ne "0" ]; then failed=1; fi
if [ "$failed" -ne "0" ]; then exit 1; fi
pushd rosbuild_ws
export BASE_ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH
pushd simulator/ut_multirobot_sim
export ROS_PACKAGE_PATH=`pwd`:$BASE_ROS_PACKAGE_PATH
make -j `nproc`
if [ "$?" -ne "0" ]; then failed=1; fi
popd
popd
export ROS_PACKAGE_PATH=$BASE_ROS_PACKAGE_PATH
if [ "$failed" -ne "0" ]; then exit 1; fi