Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
a2265a61
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,发现更多精彩内容 >>
提交
a2265a61
编写于
3月 27, 2018
作者:
B
Bill Hamilton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Darwin: added version check for installation of python3
上级
4fa9403d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
8 deletion
+20
-8
eosio_build.sh
eosio_build.sh
+7
-5
scripts/eosio_build_darwin.sh
scripts/eosio_build_darwin.sh
+13
-3
未找到文件。
eosio_build.sh
浏览文件 @
a2265a61
...
...
@@ -30,20 +30,22 @@
# https://github.com/EOSIO/eos/blob/master/LICENSE.txt
##########################################################################
VERSION
=
1.
1
VERSION
=
1.
2
ULIMIT
=
$(
ulimit
-u
)
WORK_DIR
=
$PWD
BUILD_DIR
=
${
WORK_DIR
}
/build
TEMP_DIR
=
/tmp
ARCH
=
$(
uname
)
DISK_MIN
=
20
PYTHON_MIN
=
3
TIME_BEGIN
=
$(
date
-u
+%s
)
txtbld
=
$(
tput bold
)
bldred
=
${
txtbld
}
$(
tput setaf 1
)
txtrst
=
$(
tput sgr0
)
printf
"
\n\t
$(
date
-u
)
\n
"
DISK_MIN
=
20
PYTHON_MIN
=
3
printf
"
\n\t
Beginning build version:
${
VERSION
}
\n
"
printf
"
\t
$(
date
-u
)
\n
"
printf
"
\t
git head id:
$(
cat
.git/refs/heads/master
)
\n
"
printf
"
\t
Current branch:
$(
git branch |
grep
\*
)
\n
"
printf
"
\n\t
ARCHITECTURE:
${
ARCH
}
\n
"
...
...
@@ -174,7 +176,7 @@
TIME_END
=
$((
`
date
-u
+%s
`
-
$TIME_BEGIN
))
printf
"
\t
_______
_______ _______ _________ _______
\n
"
printf
"
\t
_______ _______ _______ _________ _______
\n
"
printf
"
\t
( ____
\(
___ )( ____
\\
__ __/( ___ )
\n
"
printf
"
\t
| (
\/
| ( ) || (
\/
) ( | ( ) |
\n
"
printf
"
\t
| (__ | | | || (_____ | | | | | |
\n
"
...
...
scripts/eosio_build_darwin.sh
浏览文件 @
a2265a61
...
...
@@ -5,7 +5,7 @@
MEM_GIG
=
`
bc
<<<
"(
$(
sysctl
-in
hw.memsize
)
/ 1024000000)"
`
CPU_SPEED
=
`
bc
<<<
"scale=2; (
$(
sysctl
-in
hw.cpufrequency
)
/ 10
0000000
) / 10"
`
CPU_SPEED
=
`
bc
<<<
"scale=2; (
$(
sysctl
-in
hw.cpufrequency
)
/ 10
^6
) / 10"
`
CPU_CORE
=
$(
sysctl
-in
machdep.cpu.core_count
)
blksize
=
`
df
.
|
head
-1
|
awk
'{print $2}'
|
cut
-d-
-f1
`
...
...
@@ -22,7 +22,7 @@
printf
"
\t
Physical Memory:
$MEM_GIG
Gbytes
\n
"
printf
"
\t
Disk space total:
${
DISK_TOTAL
}
G
\n
"
printf
"
\t
Disk space available:
${
DISK_AVAIL
}
G
\n\n
"
if
[
$MEM_GIG
-lt
8
]
;
then
echo
"Your system must have 8 or more Gigabytes of physical memory installed."
echo
"Exiting now."
...
...
@@ -100,7 +100,7 @@
printf
'\t\t %s found\n'
"
$name
"
continue
fi
# resolve conflict with homebrew glibtool and apple
s install
of libtool
# resolve conflict with homebrew glibtool and apple
/gnu installs
of libtool
if
[
${
testee
}
==
"/usr/local/bin/glibtool"
]
;
then
if
[
${
tester
}
"/usr/local/bin/libtool"
]
;
then
printf
'\t\t %s found\n'
"
$name
"
...
...
@@ -117,6 +117,16 @@
let
COUNT++
done
< scripts/eosio_build_dep
IFS
=
${
var_ifs
}
printf
"
\t
Checking Python3 ... "
if
[
`
python
--version
|
tr
-
' '
|
cut
-d
' '
-f2
|
cut
-d
'.'
-f1
`
!=
${
PYTHON_MIN
}
]
;
then
DEP
=
$DEP
"python@
${
PYTHON_MIN
}
"
DISPLAY
=
"
${
DISPLAY
}${
COUNT
}
. Python 3
\n\t
"
printf
"
\t\t
python
${
PYTHON_MIN
}
${
bldred
}
NOT
${
txtrst
}
found.
\n
"
let
DCOUNT++
else
printf
"
\t\t
Python3 found
\n
"
fi
if
[
$DCOUNT
-ne
0
]
;
then
printf
"
\n\t
The following dependencies are required to install EOSIO.
\n
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录