Skip to content

Commit

Permalink
Merge pull request #13 from juraph-dev/compilation_cleanup
Browse files Browse the repository at this point in the history
CD into the correct directory before compilation
  • Loading branch information
juraph-dev committed Apr 23, 2024
2 parents 896e998 + c0622cc commit ba1e6f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/compile.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#! /bin/bash
set -euo pipefail
cd "$(dirname "$0")"
cd ../..
colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_OUTPUT_EXTENSION_REPLACE=ON --symlink-install --event-handlers console_direct+
cd ornis
Expand Down
3 changes: 2 additions & 1 deletion tools/compile_clean.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /bin/sh
#! /bin/bash
cd "$(dirname "$0")"
cd ../../
rm -r build/*
rm -r install/*
Expand Down
1 change: 1 addition & 0 deletions tools/compile_launch.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

cd "$(dirname "$0")"
cd ../../
(colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug --symlink-install && ./build/ornis/ornis )
cd ornis
Expand Down
4 changes: 3 additions & 1 deletion tools/compile_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#! /bin/sh
#! /bin/bash

cd "$(dirname "$0")"
cd ../../
rm -r build/*
rm -r install/*
Expand Down

0 comments on commit ba1e6f6

Please sign in to comment.