forked from carla-simulator/carla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugins.sh
executable file
·40 lines (33 loc) · 1.17 KB
/
Plugins.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
34
35
36
37
38
39
40
# ==============================================================================
# -- Parse arguments -----------------------------------------------------------
# ==============================================================================
DOC_STRING="Retrieve the plugins for CARLA"
USAGE_STRING="Usage: $0 [-h|--help] [--release]"
RELEASE=false
while [[ $# -gt 0 ]]; do
case "$1" in
--release )
RELEASE=true
shift ;;
-h | --help )
echo "$DOC_STRING"
echo "$USAGE_STRING"
exit 1
;;
* )
shift ;;
esac
done
# ==============================================================================
# -- Get Plugins ---------------------------------------------------------------
# ==============================================================================
log "Retrieving Plugins"
if [[ -d "${CARLA_ROOT_FOLDER}Plugins" ]] ; then
log "Plugins already installed."
else
if ${RELEASE} ; then
git clone --depth=1 --recursive https://github.com/carla-simulator/carla-plugins.git "${CARLA_ROOT_FOLDER}Plugins"
else
git clone --recursive https://github.com/carla-simulator/carla-plugins.git "${CARLA_ROOT_FOLDER}Plugins"
fi
fi