Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
72dad213
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,发现更多精彩内容 >>
未验证
提交
72dad213
编写于
8月 09, 2018
作者:
K
Kevin Heifner
提交者:
GitHub
8月 09, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5122 from Hexlant/newinstallscript
Changed install / uninstall script
上级
fd59a31b
2ac3b77b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
47 addition
and
48 deletion
+47
-48
eosio_install.sh
eosio_install.sh
+42
-44
eosio_uninstall.sh
eosio_uninstall.sh
+5
-4
未找到文件。
eosio_install.sh
浏览文件 @
72dad213
...
...
@@ -31,21 +31,21 @@
##########################################################################
CWD
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
if
[
"
${
CWD
}
"
!=
"
${
PWD
}
"
]
;
then
printf
"
\\
n
\\
tPlease cd into directory %s to run this script.
\\
n
\\
tExiting now.
\\
n
\\
n"
"
${
CWD
}
"
exit
1
fi
CWD
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
if
[
"
${
CWD
}
"
!=
"
${
PWD
}
"
]
;
then
printf
"
\\
n
\\
tPlease cd into directory %s to run this script.
\\
n
\\
tExiting now.
\\
n
\\
n"
"
${
CWD
}
"
exit
1
fi
BUILD_DIR
=
"
${
PWD
}
/build"
CMAKE_BUILD_TYPE
=
Release
TIME_BEGIN
=
$(
date
-u
+%s
)
BUILD_DIR
=
"
${
PWD
}
/build"
CMAKE_BUILD_TYPE
=
Release
TIME_BEGIN
=
$(
date
-u
+%s
)
INSTALL_PREFIX
=
"/usr/local/eosio"
VERSION
=
1.2
VERSION
=
1.2
txtbld
=
$(
tput bold
)
bldred
=
${
txtbld
}
$(
tput setaf 1
)
txtrst
=
$(
tput sgr0
)
txtbld
=
$(
tput bold
)
bldred
=
${
txtbld
}
$(
tput setaf 1
)
txtrst
=
$(
tput sgr0
)
create_symlink
()
{
pushd
/usr/local/bin &> /dev/null
...
...
@@ -54,21 +54,21 @@
}
install_symlinks
()
{
printf
"
\\
n
\\
tInstalling EOSIO Binary Symlinks
\\
n
\\
n"
printf
"
\\
n
\\
tInstalling EOSIO Binary Symlinks
\\
n
\\
n"
create_symlink
"cleos"
create_symlink
"nodeos"
create_symlink
"eosio-abigen"
create_symlink
"eosio-applesdemo"
create_symlink
"eosio-launcher"
create_symlink
"eosio-s2wasm"
create_symlink
"eosio-wast2wasm"
create_symlink
"eosio-keosd"
create_symlink
"eosiocpp"
create_symlink
"keosd"
create_symlink
"nodeos"
}
if
[
!
-d
"
${
BUILD_DIR
}
"
]
;
then
if
[
!
-d
"
${
BUILD_DIR
}
"
]
;
then
printf
"
\\
n
\\
tError, eosio_build.sh has not ran. Please run ./eosio_build.sh first!
\\
n
\\
n"
exit
-1
fi
fi
${
PWD
}
/scripts/clean_old_install.sh
if
[
$?
-ne
0
]
;
then
...
...
@@ -76,35 +76,33 @@
exit
-1
fi
if
!
pushd
"
${
BUILD_DIR
}
"
then
printf
"Unable to enter build directory %s.
\\
n Exiting now.
\\
n"
"
${
BUILD_DIR
}
"
exit
1
;
fi
if
!
pushd
"
${
BUILD_DIR
}
"
then
printf
"Unable to enter build directory %s.
\\
n Exiting now.
\\
n"
"
${
BUILD_DIR
}
"
exit
1
;
fi
if
!
make
install
then
printf
"
\\
n
\\
t>>>>>>>>>>>>>>>>>>>> MAKE installing EOSIO has exited with the above error.
\\
n
\\
n"
exit
-1
fi
if
!
make
install
then
printf
"
\\
n
\\
t>>>>>>>>>>>>>>>>>>>> MAKE installing EOSIO has exited with the above error.
\\
n
\\
n"
exit
-1
fi
popd
&> /dev/null
install_symlinks
printf
"
\n\n
${
bldred
}
\t
_______ _______ _______ _________ _______
\n
"
printf
'\t( ____ \( ___ )( ____ \\\\__ __/( ___ )\n'
printf
"
\t
| (
\/
| ( ) || (
\/
) ( | ( ) |
\n
"
printf
"
\t
| (__ | | | || (_____ | | | | | |
\n
"
printf
"
\t
| __) | | | |(_____ ) | | | | | |
\n
"
printf
"
\t
| ( | | | | ) | | | | | | |
\n
"
printf
"
\t
| (____/
\|
(___) |/
\_
___) |___) (___| (___) |
\n
"
printf
"
\t
(_______/(_______)
\_
______)
\_
______/(_______)
\n
${
txtrst
}
"
printf
"
\\
tTo verify your installation run the following commands:
\\
n"
printf
"
\n\n
${
bldred
}
\t
_______ _______ _______ _________ _______
\n
"
printf
'\t( ____ \( ___ )( ____ \\\\__ __/( ___ )\n'
printf
"
\t
| (
\/
| ( ) || (
\/
) ( | ( ) |
\n
"
printf
"
\t
| (__ | | | || (_____ | | | | | |
\n
"
printf
"
\t
| __) | | | |(_____ ) | | | | | |
\n
"
printf
"
\t
| ( | | | | ) | | | | | | |
\n
"
printf
"
\t
| (____/
\|
(___) |/
\_
___) |___) (___| (___) |
\n
"
printf
"
\t
(_______/(_______)
\_
______)
\_
______/(_______)
\n
${
txtrst
}
"
printf
"
\\
tFor more information:
\\
n"
printf
"
\\
tEOSIO website: https://eos.io
\\
n"
printf
"
\\
tEOSIO Telegram channel @ https://t.me/EOSProject
\\
n"
printf
"
\\
tEOSIO resources: https://eos.io/resources/
\\
n"
printf
"
\\
tEOSIO Stack Exchange: https://eosio.stackexchange.com
\\
n"
printf
"
\\
tEOSIO wiki: https://github.com/EOSIO/eos/wiki
\\
n
\\
n
\\
n"
printf
"
\\
tFor more information:
\\
n"
printf
"
\\
tEOSIO website: https://eos.io
\\
n"
printf
"
\\
tEOSIO Telegram channel @ https://t.me/EOSProject
\\
n"
printf
"
\\
tEOSIO resources: https://eos.io/resources/
\\
n"
printf
"
\\
tEOSIO Stack Exchange: https://eosio.stackexchange.com
\\
n"
printf
"
\\
tEOSIO wiki: https://github.com/EOSIO/eos/wiki
\\
n
\\
n
\\
n"
eosio_uninstall.sh
浏览文件 @
72dad213
#! /bin/bash
binaries
=(
cleos
nodeos
eosio-keosd
eosio-abigen
eosio-applesdemo
eosio-launcher
eosio-s2wasm
eosio-wast2wasm
)
eosio-wast2wasm
eosiocpp
keosd
nodeos
eosio-applesdemo
)
if
[
-d
"/usr/local/eosio"
]
;
then
printf
"
\t
Do you wish to remove this install? (requires sudo)
\n
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录