Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
623143cf
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
623143cf
编写于
4月 05, 2018
作者:
K
Kevin Heifner
提交者:
GitHub
4月 05, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2148 from pacificcode/eosio_build_darwin
Eosio build darwin check network response calls
上级
df65f11f
feb3a778
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
21 addition
and
10 deletion
+21
-10
scripts/eosio_build_darwin.sh
scripts/eosio_build_darwin.sh
+21
-10
未找到文件。
scripts/eosio_build_darwin.sh
浏览文件 @
623143cf
...
@@ -84,7 +84,6 @@
...
@@ -84,7 +84,6 @@
fi
fi
printf
"
\t
Home Brew installation found.
\n\n
"
printf
"
\t
Home Brew installation found.
\n\n
"
DCOUNT
=
0
COUNT
=
1
COUNT
=
1
PERMISSION_GETTEXT
=
0
PERMISSION_GETTEXT
=
0
DISPLAY
=
""
DISPLAY
=
""
...
@@ -107,7 +106,6 @@
...
@@ -107,7 +106,6 @@
continue
continue
fi
fi
fi
fi
let
DCOUNT++
if
[
$brewname
=
"gettext"
]
;
then
if
[
$brewname
=
"gettext"
]
;
then
PERMISSION_GETTEXT
=
1
PERMISSION_GETTEXT
=
1
fi
fi
...
@@ -128,7 +126,7 @@
...
@@ -128,7 +126,7 @@
printf
"
\t\t
Python3 found
\n
"
printf
"
\t\t
Python3 found
\n
"
fi
fi
if
[
$
DCOUNT
-ne
0
]
;
then
if
[
$
COUNT
-gt
1
]
;
then
printf
"
\n\t
The following dependencies are required to install EOSIO.
\n
"
printf
"
\n\t
The following dependencies are required to install EOSIO.
\n
"
printf
"
\n\t
$DISPLAY
\n\n
"
printf
"
\n\t
$DISPLAY
\n\n
"
echo
"Do you wish to install these packages?"
echo
"Do you wish to install these packages?"
...
@@ -153,14 +151,13 @@
...
@@ -153,14 +151,13 @@
printf
"
\n\t
No required Home Brew dependencies to install.
\n
"
printf
"
\n\t
No required Home Brew dependencies to install.
\n
"
fi
fi
printf
"
\n\t
Checking for MongoDB C++ driver
\n
"
printf
"
\n\t
Checking MongoDB C++ driver installation.
\n
"
# install libmongocxx.dylib
if
[
!
-e
/usr/local/lib/libmongocxx-static.a
]
;
then
if
[
!
-e
/usr/local/lib/libmongocxx-static.a
]
;
then
cd
${
TEMP_DIR
}
cd
${
TEMP_DIR
}
brew
install
--force
pkgconfig
brew
install
--force
pkgconfig
brew
unlink
pkgconfig
&&
brew
link
--force
pkgconfig
brew
unlink
pkgconfig
&&
brew
link
--force
pkgconfig
curl
-LO
https://github.com/mongodb/mongo-c-driver/releases/download/1.9.3/mongo-c-driver-1.9.3.tar.gz
STATUS
=
$(
curl
-LO
-w
'%{http_code}'
--connect-timeout
30 https://github.com/mongodb/mongo-c-driver/releases/download/1.9.3/mongo-c-driver-1.9.3.tar.gz
)
if
[
$
?
-ne
0
]
;
then
if
[
$
STATUS
-ne
20
0
]
;
then
rm
-f
${
TEMP_DIR
}
/mongo-c-driver-1.9.3.tar.gz
rm
-f
${
TEMP_DIR
}
/mongo-c-driver-1.9.3.tar.gz
printf
"
\t
Unable to download MongoDB C driver at this time.
\n
"
printf
"
\t
Unable to download MongoDB C driver at this time.
\n
"
printf
"
\t
Exiting now.
\n\n
"
printf
"
\t
Exiting now.
\n\n
"
...
@@ -222,11 +219,16 @@
...
@@ -222,11 +219,16 @@
printf
"
\t
Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.
\n
"
printf
"
\t
Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.
\n
"
fi
fi
printf
"
\n\t
Checking
for secp256k1-zkp
\n
"
printf
"
\n\t
Checking
secp256k1-zkp installation.
\n
"
# install secp256k1-zkp (Cryptonomex branch)
# install secp256k1-zkp (Cryptonomex branch)
if
[
!
-e
/usr/local/lib/libsecp256k1.a
]
;
then
if
[
!
-e
/usr/local/lib/libsecp256k1.a
]
;
then
cd
${
TEMP_DIR
}
cd
${
TEMP_DIR
}
git clone https://github.com/cryptonomex/secp256k1-zkp.git
git clone https://github.com/cryptonomex/secp256k1-zkp.git
if
[
$?
-ne
0
]
;
then
printf
"
\t
Unable to clone repo secp256k1-zkp @ https://github.com/cryptonomex/secp256k1-zkp.git.
\n
"
printf
"
\t
Exiting now.
\n\n
"
exit
;
fi
cd
secp256k1-zkp
cd
secp256k1-zkp
./autogen.sh
./autogen.sh
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
...
@@ -247,15 +249,24 @@
...
@@ -247,15 +249,24 @@
printf
"
\t
secp256k1 found at /usr/local/lib/
\n
"
printf
"
\t
secp256k1 found at /usr/local/lib/
\n
"
fi
fi
printf
"
\n\t
Checking
for WASM
\n
"
printf
"
\n\t
Checking
LLVM with WASM support.
\n
"
if
[
!
-d
/usr/local/wasm/bin
]
;
then
if
[
!
-d
/usr/local/wasm/bin
]
;
then
# Build LLVM and clang for WASM:
cd
${
TEMP_DIR
}
cd
${
TEMP_DIR
}
mkdir
wasm-compiler
mkdir
wasm-compiler
cd
wasm-compiler
cd
wasm-compiler
git clone
--depth
1
--single-branch
--branch
release_40 https://github.com/llvm-mirror/llvm.git
git clone
--depth
1
--single-branch
--branch
release_40 https://github.com/llvm-mirror/llvm.git
if
[
$?
-ne
0
]
;
then
printf
"
\t
Unable to clone llvm repo @ https://github.com/llvm-mirror/llvm.git.
\n
"
printf
"
\t
Exiting now.
\n\n
"
exit
;
fi
cd
llvm/tools
cd
llvm/tools
git clone
--depth
1
--single-branch
--branch
release_40 https://github.com/llvm-mirror/clang.git
git clone
--depth
1
--single-branch
--branch
release_40 https://github.com/llvm-mirror/clang.git
if
[
$?
-ne
0
]
;
then
printf
"
\t
Unable to clone clang repo @ https://github.com/llvm-mirror/clang.git.
\n
"
printf
"
\t
Exiting now.
\n\n
"
exit
;
fi
cd
..
cd
..
mkdir
build
mkdir
build
cd
build
cd
build
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录