Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Commit

Permalink
Now ./build.sh will produce bitcoin-gold-* instead of bgold-*
Browse files Browse the repository at this point in the history
  • Loading branch information
Akira Takizawa authored and h4x3rotab committed Sep 19, 2018
1 parent 5071292 commit d2e0923
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion contrib/docker_build/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Building bitcoind for fun and profit
Building bgoldd for fun and profit
-----

Run the script like this
Expand Down
5 changes: 2 additions & 3 deletions contrib/docker_build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 5 additions & 7 deletions contrib/docker_build/run_inside.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -74,7 +74,7 @@ EOF
chmod +x ${WRAP_DIR}/${prog}
done

cd bitcoin
cd BTCGPU
make clean || true
rm -rf temp
BASEPREFIX=`pwd`/depends
Expand All @@ -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"
Expand Down Expand Up @@ -133,5 +133,3 @@ for i in ${HOSTS}; do
done
mkdir -p $OUTDIR/src
mv $SOURCEDIST $OUTDIR/src


0 comments on commit d2e0923

Please sign in to comment.