From d2e0923f10836c8ff16a401d5d26c99a405d415a Mon Sep 17 00:00:00 2001 From: Akira Takizawa Date: Thu, 25 Jan 2018 01:48:09 +0900 Subject: [PATCH] Now ./build.sh will produce bitcoin-gold-* instead of bgold-* --- contrib/docker_build/README.md | 2 +- contrib/docker_build/build.sh | 5 ++--- contrib/docker_build/run_inside.sh | 12 +++++------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/contrib/docker_build/README.md b/contrib/docker_build/README.md index 72094a077..9953057e4 100644 --- a/contrib/docker_build/README.md +++ b/contrib/docker_build/README.md @@ -1,4 +1,4 @@ -Building bitcoind for fun and profit +Building bgoldd for fun and profit ----- Run the script like this diff --git a/contrib/docker_build/build.sh b/contrib/docker_build/build.sh index f3f9a5f4a..d3e91d741 100755 --- a/contrib/docker_build/build.sh +++ b/contrib/docker_build/build.sh @@ -35,14 +35,13 @@ set -ex docker build -t bitcoind_build . -docker run -v $BITCOINPATH:/bitcoin bitcoind_build /run.sh $2 +docker run -v $BITCOINPATH:/BTCGPU bitcoind_build /run.sh $2 cd $BITCOINPATH/out # renaming from Bitcoin name to Bitcore name.... stupid thing -rm -f $BITCOINPATH/out/bitcoin-0.14.0-x86_64-linux-gnu-debug.tar.gz +rm -f $BITCOINPATH/out/bitcoin-gold-0.15.0-x86_64-linux-gnu-debug.tar.gz rename s/x86_64-pc-linux-gnu/linux64/ $BITCOINPATH/out/*.tar.gz -rename s/bitcoin-0/bgold-0/ $BITCOINPATH/out/*.tar.gz sha256sum *.tar.gz > SHA256SUMS gpg --digest-algo sha256 --clearsign SHA256SUMS diff --git a/contrib/docker_build/run_inside.sh b/contrib/docker_build/run_inside.sh index 205c419c8..a1ff4a3db 100644 --- a/contrib/docker_build/run_inside.sh +++ b/contrib/docker_build/run_inside.sh @@ -9,12 +9,12 @@ update-locale LANG=en_US.UTF-8 export LANG='en_US.UTF-8' export LC_ALL='en_US.UTF-8' umask 002 -export OUTDIR=/bitcoin/out +export OUTDIR=/BTCGPU/out rm -rf $OUTDIR mkdir $OUTDIR chmod a+rwx $OUTDIR -cd bitcoin +cd BTCGPU cd depends # ???? I don't know make libsodium @@ -74,7 +74,7 @@ EOF chmod +x ${WRAP_DIR}/${prog} done -cd bitcoin +cd BTCGPU make clean || true rm -rf temp BASEPREFIX=`pwd`/depends @@ -96,13 +96,13 @@ export PATH=${WRAP_DIR}:${PATH} CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/ make clean make dist -SOURCEDIST=`echo bitcoin-*.tar.gz` +SOURCEDIST=`echo bitcoin-gold*.tar.gz` DISTNAME=`echo ${SOURCEDIST} | sed 's/.tar.*//'` # Correct tar file order mkdir -p temp pushd temp tar xf ../$SOURCEDIST -find bitcoin-* | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ../$SOURCEDIST +find bitcoin-gold* | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ../$SOURCEDIST popd ORIGPATH="$PATH" @@ -133,5 +133,3 @@ for i in ${HOSTS}; do done mkdir -p $OUTDIR/src mv $SOURCEDIST $OUTDIR/src - -