Skip to content

Commit

Permalink
Ubuntu.sh: check for requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee authored and dagar committed Sep 11, 2019
1 parent 6277710 commit fd10220
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Tools/setup/ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#! /usr/bin/env bash

## Bash script to setup PX4 development environment on Ubuntu LTS (18.04, 16.04).
## Can also be used in docker.
##
## Installs:
## - Common dependencies and tools for nuttx, jMAVSim, Gazebo
## - NuttX toolchain (omit with arg: --no-nuttx)
## - jMAVSim and Gazebo9 simulator (omit with arg: --no-sim-tools)
##
## Not Installs:
## - FastRTPS and FastCDR


INSTALL_NUTTX="true"
INSTALL_SIM="true"

Expand Down Expand Up @@ -33,6 +45,14 @@ fi
# script directory
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

# check requirements.txt exists (script not run in source tree)
REQUIREMENTS_FILE="requirements.txt"
if [[ ! -f "${DIR}/${REQUIREMENTS_FILE}" ]]; then
echo "FAILED: ${REQUIREMENTS_FILE} needed in same directory as ubuntu.sh (${DIR})."
return 1
fi


# check ubuntu version
# instructions for 16.04, 18.04
# otherwise warn and point to docker?
Expand All @@ -47,6 +67,8 @@ elif [[ "${UBUNTU_RELEASE}" == "18.04" ]]; then
echo "Ubuntu 18.04"
fi



export DEBIAN_FRONTEND=noninteractive

echo
Expand Down

0 comments on commit fd10220

Please sign in to comment.