forked from osu-uwrt/riptide_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·39 lines (32 loc) · 1.04 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·39 lines (32 loc) · 1.04 KB
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
37
38
39
#!/bin/bash
# Default Linux installation doesn't have pip. Install and update for both Python versions for good measure
sudo apt-get install python3-pip --yes
python3 -m pip install --upgrade pip
sudo python3 -m pip install vcstool
if [ ! -d "../riptide_software/src" ]; then
if type lsb_release >/dev/null 2>&1; then
VER=$(lsb_release -sr)
else
echo "Linux distro not recognized"
exit
fi
mkdir -p ../riptide_software
mkdir -p ../riptide_software/src
vcs import < riptide_base.repos ../riptide_software/src
#Assigning default value as 1: Desktop full install
echo
echo
read -p "Would you like to install the simulator (Y/n)? " -n 1 answer
echo
echo
case "$answer" in
y|Y|"" )
git clone https://github.com/osu-uwrt/riptide_gazebo ../riptide_software/src/riptide_gazebo
cd ../riptide_software/src/riptide_gazebo
git checkout dev
cd ../../../riptide_setup
;;
esac
fi
cd scripts/setup_scripts
./update_system.sh