-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathupdate_tutorials.sh
More file actions
executable file
·44 lines (36 loc) · 1001 Bytes
/
update_tutorials.sh
File metadata and controls
executable file
·44 lines (36 loc) · 1001 Bytes
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
40
41
42
43
44
#!/bin/bash
roscd
# Update the AR.Drone Driver
if [ -d "ardrone_autonomy" ];
then
cd ardrone_autonomy
git pull
./build_sdk.sh
else
git clone https://github.com/AutonomyLab/ardrone_autonomy.git
cd ardrone_autonomy
./build_sdk.sh
fi
roscd
# Update the first tutorial's files
if [ -d "ardrone_tutorials_getting_started" ];
then
cd ardrone_tutorials_getting_started
git pull
else
git clone https://github.com/mikehamer/ardrone_tutorials_getting_started.git
fi
roscd
# This will download an install file for new tutorials, which is then run.
# We do it this way so that we can update the install file and run it straight away,
# instead of having to run the update procedure twice (which we would need to do if this file were updated)
if [ -f "ardrone_tutorials_getting_started/install_new_tutorials.sh" ];
then
cd ardrone_tutorials_getting_started
source install_new_tutorials.sh
fi
roscd
rospack profile
rosstack profile
rosmake -a
read -p "Update complete. Press [Enter] to continue."