-
Notifications
You must be signed in to change notification settings - Fork 18
/
bootstrap-dev.sh
executable file
·33 lines (28 loc) · 1.33 KB
/
bootstrap-dev.sh
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
echo "Removing directories if exist"
rm -rf hydrus sim_controller sim_gui sim_drone1 sim_drone2 sim_drone3 sim_drone4
echo "Install requirements..."
pip install -r requirements.txt
#
git clone --single-branch https://github.com/HTTP-APIs/hydra-flock-central-controller.git sim_controller
git clone --single-branch https://github.com/HTTP-APIs/hydra-flock-gui.git sim_gui
# Drone1
git clone --single-branch https://github.com/HTTP-APIs/hydra-flock-drone.git sim_drone1
# Drone2
git clone --single-branch https://github.com/HTTP-APIs/hydra-flock-drone.git sim_drone2
# Drone3
git clone --single-branch https://github.com/HTTP-APIs/hydra-flock-drone.git sim_drone3
# Drone4
git clone --single-branch https://github.com/HTTP-APIs/hydra-flock-drone.git sim_drone4
## Updating drone settings
echo "Updating drone settings"
cp drone_settings/drone1_settings.py sim_drone1/flock_drone/settings.py
cp drone_settings/drone2_settings.py sim_drone2/flock_drone/settings.py
cp drone_settings/drone3_settings.py sim_drone3/flock_drone/settings.py
cp drone_settings/drone4_settings.py sim_drone4/flock_drone/settings.py
echo "Done!"
echo "Generating new docs"
python -m sim_drone1.flock_drone.api_docs.doc_gen
python -m sim_drone2.flock_drone.api_docs.doc_gen
python -m sim_drone3.flock_drone.api_docs.doc_gen
python -m sim_drone4.flock_drone.api_docs.doc_gen
echo "Done!"