This repository has been archived by the owner on Oct 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
96 lines (93 loc) · 2.68 KB
/
setup.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
##########################################################################
# This sets up the dependency libraries from different github repositories.
# NOTE: in case of any unexpected error, try to use `dos2unix <shell-script-file-name.sh>`
##########################################################################
# -----------------------------------------------------------------
# boost
if [[ -d "boost" ]]; then
# echo "boost folder exist"
cd boost
svn update
cd ..
else
# echo "boost folder NOT exist"
svn checkout https://github.com/EOSIO/eosio.cdt/trunk/libraries/boost/include/boost
fi
# -----------------------------------------------------------------
# eosiolib
if [[ -d "eosiolib" ]]; then
# echo "eosiolib folder exist"
cd eosiolib
svn update
cd ..
else
# echo "eosiolib folder NOT exist"
svn checkout https://github.com/EOSIO/eosio.cdt/trunk/libraries/eosiolib
fi
# -----------------------------------------------------------------
# eosio.bios
if [[ -d "eosio.bios" ]]; then
# echo "eosio.bios folder exist"
cd eosio.bios
svn update
cd ..
else
# echo "eosio.bios folder NOT exist"
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/contracts/eosio.bios
fi
# -----------------------------------------------------------------
# eosio.msig
if [[ -d "eosio.msig" ]]; then
# echo "eosio.msig folder exist"
cd eosio.msig
svn update
cd ..
else
# echo "eosio.bios folder NOT exist"
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/contracts/eosio.msig
fi
# -----------------------------------------------------------------
# eosio.system
if [[ -d "eosio.system" ]]; then
# echo "eosio.system folder exist"
cd eosio.system
svn update
cd ..
else
# echo "eosio.system folder NOT exist"
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/contracts/eosio.system
fi
# -----------------------------------------------------------------
# eosio.token
if [[ -d "eosio.token" ]]; then
# echo "eosio.token folder exist"
cd eosio.token
svn update
cd ..
else
# echo "eosio.token folder NOT exist"
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/contracts/eosio.token
fi
# -----------------------------------------------------------------
# eosio.wrap
if [[ -d "eosio.wrap" ]]; then
# echo "eosio.wrap folder exist"
cd eosio.wrap
svn update
cd ..
else
# echo "eosio.wrap folder NOT exist"
svn checkout https://github.com/EOSIO/eosio.contracts/trunk/contracts/eosio.wrap
fi
# -----------------------------------------------------------------
# eos-api
if [[ -d "eos-api" ]]; then
# echo "eos-api folder exist"
cd eos-api
git pull
cd ..
else
# echo "eos-api folder NOT exist"
git submodule add https://github.com/oraclize/eos-api.git eos-api
fi