Skip to content
Merged

Script #1599

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tools/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# set at the time we start the last step, the ros1_bridge build.

if [ "$ROS2_DISTRO" = "" ]; then
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert to 4 spaces. Its customary for shell script.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you find weird that after this block every indentation is 2 space indentation?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that is strange. Lets just make it consistent, whether 4 or 2 I suppose.

export ROS2_DISTRO=dashing
export ROS2_DISTRO=eloquent
fi
if [ "$ROS2_DISTRO" != "dashing" ]; then
echo "ROS2_DISTRO variable must be set to dashing"
exit 1
if [ "$ROS2_DISTRO" != "eloquent" ]; then
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can / should be just eloquent. The dashing version of this script in the dashing branch is only dashing. This should be merged into master and cherry picked into Eloquent with just eloquent.

echo "ROS2_DISTRO variable must be set to eloquent"
exit 1
fi

set -e
Expand Down
8 changes: 4 additions & 4 deletions tools/initial_ros_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ ENABLE_BUILD=true
ENABLE_ROS2=true

if [ "$ROS2_DISTRO" = "" ]; then
export ROS2_DISTRO=dashing
export ROS2_DISTRO=eloquent
fi
if [ "$ROS2_DISTRO" != "dashing" ]; then
echo "ROS2_DISTRO variable must be set to dashing"
if [ "$ROS2_DISTRO" != "eloquent" ]; then
echo "ROS2_DISTRO variable must be set to eloquent"
exit 1
fi

Expand All @@ -24,7 +24,7 @@ for opt in "$@" ; do
*)
echo "Invalid option: $opt"
echo "Valid options:"
echo "--no-ros2 Uses the binary distribution of ROS2 dashing"
echo "--no-ros2 Uses the binary distribution of ROS2 eloquent"
echo "--download-only Skips the build step and only downloads the code"
exit 1
;;
Expand Down