-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.sh
54 lines (45 loc) · 1.13 KB
/
configuration.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/bash
#
# Install all the git repositories inclunding RIOT master branch
# Default directory for all forks of RIOT other than (RIOT-OS)/master
RIOT_BETA="betas"
USR1_RIOT="https://github.com/rfuentess/riot.git"
USR1_VER1="alpha/sock/secure"
USR1_VER2="module/tlsman"
USR2_RIOT="https://github.com/miri64/riot.git"
USR2_VER1="gnrc_sock/feat/async"
#######################################
# Remove all the alternatiove git repositories.
# Globals:
# None
# Arguments:
# None
# Returns:
# None
#######################################
cleanup(){
rm -rf betas/
}
#######################################
# Clone the repositories
# Globals:
# USR*
# RIOT_*
# Arguments:
# None
# Returns:
# None
#######################################
generate(){
echo "Loading offical RIOT master branch..."
# The official RIOT repository
git submodule init
git submodule update
echo "Loading beta RIOT branches..."
# Betas repositories
mkdir -p betas
git clone "${USR1_RIOT}" -b "${USR1_VER1}" "${RIOT_BETA}"/async
git clone "${USR1_RIOT}" -b "${USR1_VER2}" "${RIOT_BETA}"/tlsman
}
cleanup ""
generate ""