Skip to content

Commit 7215911

Browse files
authored
Autoinstall rosdoc-lite if needed (#608)
1 parent cf8c525 commit 7215911

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ This repository is currently built automatically by two systems. Travis builds t
2424

2525
## Build Locally
2626

27-
If you want to test the tutorials by generating the html pages locally on your machine, you will first need to install the `rosdoc_lite` package, and then you can use the ``build_locally`` script.
27+
If you want to test the tutorials by generating the html pages locally on your machine, you can use the ``build_locally`` script.
2828
Run in the root of the moveit_tutorials package:
2929

30-
> **_NOTE:_** [rosdoc_lite](https://wiki.ros.org/rosdoc_lite) is needed to run the build_locally.sh script!
31-
3230
export ROS_DISTRO=kinetic # 16.04
3331
export ROS_DISTRO=melodic # 18.04
3432
export ROS_DISTRO=noetic # 20.04
3533

36-
sudo apt install ros-$ROS_DISTRO-rosdoc-lite
3734
source /opt/ros/$ROS_DISTRO/setup.bash
3835
./build_locally.sh
3936

build_locally.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/bin/sh
22

33
# Install rosdoc_lite if it isn't there yet
4-
test -x `which rosdoc_lite` || sudo apt install ros-$ROS_DISTRO-rosdoc-lite
4+
if ! command -v rosdoc_lite &> /dev/null
5+
then
6+
echo "Installing rosdoc_lite"
7+
sudo apt install ros-$ROS_DISTRO-rosdoc-lite
8+
fi
59

610
# Setup Environment
711
rm -rf build

0 commit comments

Comments
 (0)