Do not change current workspace
This commit is contained in:
parent
e886fb03aa
commit
8a50184a65
1 changed files with 9 additions and 1 deletions
10
build_rh6.sh
10
build_rh6.sh
|
@ -7,8 +7,16 @@ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d
|
|||
yum upgrade -y
|
||||
yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++
|
||||
|
||||
rm -rf build xmrig-$1-lin64.tar.gz
|
||||
mkdir build &&\
|
||||
cd build &&\
|
||||
git clone https://github.com/MoneroOcean/xmrig.git &&\
|
||||
git checkout $1 &&\
|
||||
scl enable devtoolset-2 "cmake ." &&\
|
||||
scl enable devtoolset-2 "make" &&\
|
||||
cp src/config.json . &&\
|
||||
tar cfz xmrig-$1-lin64.tar.gz xmrig config.json
|
||||
tar cfz ../xmrig-$1-lin64.tar.gz xmrig config.json &&\
|
||||
cd .. &&\
|
||||
rm -rf build &&\
|
||||
echo OK
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue