@ -17,7 +17,7 @@ osx=true
@@ -17,7 +17,7 @@ osx=true
SIGNER =
VERSION =
commit = false
url = https://github.com/bitcoin/bit coin
url = https://github.com/litecoin-project/lite coin
proc = 2
mem = 2000
lxc = true
@ -31,7 +31,7 @@ commitFiles=true
@@ -31,7 +31,7 @@ commitFiles=true
read -d '' usage <<- EOF
Usage: $scriptName [ -c| u| v| b| s| B| o| h| j| m| ] signer version
Run this script from the directory containing the bitcoin, gitian-builder, gitian.sigs, and bit coin-detached-sigs.
Run this script from the directory containing the litecoin, gitian-builder, gitian.sigs.ltc, and lite coin-detached-sigs.
Arguments:
signer GPG signer to sign each build assert file
@ -39,7 +39,7 @@ version Version number, commit, or branch to build. If building a commit or bra
@@ -39,7 +39,7 @@ version Version number, commit, or branch to build. If building a commit or bra
Options:
-c| --commit Indicate that the version argument is for a commit or branch
-u| --url Specify the URL of the repository. Default is https://github.com/bitcoin/bit coin
-u| --url Specify the URL of the repository. Default is https://github.com/litecoin-project/lite coin
-v| --verify Verify the gitian build
-b| --build Do a gitian build
-s| --sign Make signed binaries for Windows and Mac OSX
@ -232,8 +232,8 @@ echo ${COMMIT}
@@ -232,8 +232,8 @@ echo ${COMMIT}
if [ [ $setup = true ] ]
then
sudo apt-get install ruby apache2 git apt-cacher-ng python-vm-builder qemu-kvm qemu-utils
git clone https://github.com/bitcoin-core/gitian.sigs .git
git clone https://github.com/bitcoin-core/bit coin-detached-sigs.git
git clone https://github.com/litecoin-project/gitian.sigs.ltc .git
git clone https://github.com/litecoin-project/lite coin-detached-sigs.git
git clone https://github.com/devrandom/gitian-builder.git
pushd ./gitian-builder
if [ [ -n " $USE_LXC " ] ]
@ -247,7 +247,7 @@ then
@@ -247,7 +247,7 @@ then
fi
# Set up build
pushd ./bit coin
pushd ./lite coin
git fetch
git checkout ${ COMMIT }
popd
@ -256,7 +256,7 @@ popd
@@ -256,7 +256,7 @@ popd
if [ [ $build = true ] ]
then
# Make output folder
mkdir -p ./bit coin-binaries/${ VERSION }
mkdir -p ./lite coin-binaries/${ VERSION }
# Build Dependencies
echo ""
@ -266,7 +266,7 @@ then
@@ -266,7 +266,7 @@ then
mkdir -p inputs
wget -N -P inputs $osslPatchUrl
wget -N -P inputs $osslTarUrl
make -C ../bit coin/depends download SOURCES_PATH = ` pwd ` /cache/common
make -C ../lite coin/depends download SOURCES_PATH = ` pwd ` /cache/common
# Linux
if [ [ $linux = true ] ]
@ -274,9 +274,9 @@ then
@@ -274,9 +274,9 @@ then
echo ""
echo " Compiling ${ VERSION } Linux "
echo ""
./bin/gbuild -j ${ proc } -m ${ mem } --commit bit coin= ${ COMMIT } --url bit coin= ${ url } ../bit coin/contrib/gitian-descriptors/gitian-linux.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -linux --destination ../gitian.sigs/ ../bit coin/contrib/gitian-descriptors/gitian-linux.yml
mv build/out/bitcoin-*.tar.gz build/out/src/bitcoin-*.tar.gz ../bit coin-binaries/${ VERSION }
./bin/gbuild -j ${ proc } -m ${ mem } --commit lite coin= ${ COMMIT } --url lite coin= ${ url } ../lite coin/contrib/gitian-descriptors/gitian-linux.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -linux --destination ../gitian.sigs.ltc/ ../lite coin/contrib/gitian-descriptors/gitian-linux.yml
mv build/out/litecoin-*.tar.gz build/out/src/litecoin-*.tar.gz ../lite coin-binaries/${ VERSION }
fi
# Windows
if [ [ $windows = true ] ]
@ -284,10 +284,10 @@ then
@@ -284,10 +284,10 @@ then
echo ""
echo " Compiling ${ VERSION } Windows "
echo ""
./bin/gbuild -j ${ proc } -m ${ mem } --commit bit coin= ${ COMMIT } --url bit coin= ${ url } ../bit coin/contrib/gitian-descriptors/gitian-win.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -win-unsigned --destination ../gitian.sigs/ ../bit coin/contrib/gitian-descriptors/gitian-win.yml
mv build/out/bitcoin-*-win-unsigned.tar.gz inputs/bit coin-win-unsigned.tar.gz
mv build/out/bitcoin-*.zip build/out/bitcoin-*.exe ../bit coin-binaries/${ VERSION }
./bin/gbuild -j ${ proc } -m ${ mem } --commit lite coin= ${ COMMIT } --url lite coin= ${ url } ../lite coin/contrib/gitian-descriptors/gitian-win.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -win-unsigned --destination ../gitian.sigs.ltc/ ../lite coin/contrib/gitian-descriptors/gitian-win.yml
mv build/out/litecoin-*-win-unsigned.tar.gz inputs/lite coin-win-unsigned.tar.gz
mv build/out/litecoin-*.zip build/out/litecoin-*.exe ../lite coin-binaries/${ VERSION }
fi
# Mac OSX
if [ [ $osx = true ] ]
@ -295,10 +295,10 @@ then
@@ -295,10 +295,10 @@ then
echo ""
echo " Compiling ${ VERSION } Mac OSX "
echo ""
./bin/gbuild -j ${ proc } -m ${ mem } --commit bit coin= ${ COMMIT } --url bit coin= ${ url } ../bit coin/contrib/gitian-descriptors/gitian-osx.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -osx-unsigned --destination ../gitian.sigs/ ../bit coin/contrib/gitian-descriptors/gitian-osx.yml
mv build/out/bitcoin-*-osx-unsigned.tar.gz inputs/bit coin-osx-unsigned.tar.gz
mv build/out/bitcoin-*.tar.gz build/out/bitcoin-*.dmg ../bit coin-binaries/${ VERSION }
./bin/gbuild -j ${ proc } -m ${ mem } --commit lite coin= ${ COMMIT } --url lite coin= ${ url } ../lite coin/contrib/gitian-descriptors/gitian-osx.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -osx-unsigned --destination ../gitian.sigs.ltc/ ../lite coin/contrib/gitian-descriptors/gitian-osx.yml
mv build/out/litecoin-*-osx-unsigned.tar.gz inputs/lite coin-osx-unsigned.tar.gz
mv build/out/litecoin-*.tar.gz build/out/litecoin-*.dmg ../lite coin-binaries/${ VERSION }
fi
popd
@ -325,27 +325,27 @@ then
@@ -325,27 +325,27 @@ then
echo ""
echo " Verifying v ${ VERSION } Linux "
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${ VERSION } -linux ../bit coin/contrib/gitian-descriptors/gitian-linux.yml
./bin/gverify -v -d ../gitian.sigs.ltc / -r ${ VERSION } -linux ../lite coin/contrib/gitian-descriptors/gitian-linux.yml
# Windows
echo ""
echo " Verifying v ${ VERSION } Windows "
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${ VERSION } -win-unsigned ../bit coin/contrib/gitian-descriptors/gitian-win.yml
./bin/gverify -v -d ../gitian.sigs.ltc / -r ${ VERSION } -win-unsigned ../lite coin/contrib/gitian-descriptors/gitian-win.yml
# Mac OSX
echo ""
echo " Verifying v ${ VERSION } Mac OSX "
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${ VERSION } -osx-unsigned ../bit coin/contrib/gitian-descriptors/gitian-osx.yml
./bin/gverify -v -d ../gitian.sigs.ltc / -r ${ VERSION } -osx-unsigned ../lite coin/contrib/gitian-descriptors/gitian-osx.yml
# Signed Windows
echo ""
echo " Verifying v ${ VERSION } Signed Windows "
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${ VERSION } -osx-signed ../bit coin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gverify -v -d ../gitian.sigs.ltc / -r ${ VERSION } -osx-signed ../lite coin/contrib/gitian-descriptors/gitian-osx-signer.yml
# Signed Mac OSX
echo ""
echo " Verifying v ${ VERSION } Signed Mac OSX "
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${ VERSION } -osx-signed ../bit coin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gverify -v -d ../gitian.sigs.ltc / -r ${ VERSION } -osx-signed ../lite coin/contrib/gitian-descriptors/gitian-osx-signer.yml
popd
fi
@ -360,10 +360,10 @@ then
@@ -360,10 +360,10 @@ then
echo ""
echo " Signing ${ VERSION } Windows "
echo ""
./bin/gbuild -i --commit signature = ${ COMMIT } ../bit coin/contrib/gitian-descriptors/gitian-win-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -win-signed --destination ../gitian.sigs/ ../bit coin/contrib/gitian-descriptors/gitian-win-signer.yml
mv build/out/bitcoin-*win64-setup.exe ../bit coin-binaries/${ VERSION }
mv build/out/bitcoin-*win32-setup.exe ../bit coin-binaries/${ VERSION }
./bin/gbuild -i --commit signature = ${ COMMIT } ../lite coin/contrib/gitian-descriptors/gitian-win-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -win-signed --destination ../gitian.sigs.ltc/ ../lite coin/contrib/gitian-descriptors/gitian-win-signer.yml
mv build/out/litecoin-*win64-setup.exe ../lite coin-binaries/${ VERSION }
mv build/out/litecoin-*win32-setup.exe ../lite coin-binaries/${ VERSION }
fi
# Sign Mac OSX
if [ [ $osx = true ] ]
@ -371,9 +371,9 @@ then
@@ -371,9 +371,9 @@ then
echo ""
echo " Signing ${ VERSION } Mac OSX "
echo ""
./bin/gbuild -i --commit signature = ${ COMMIT } ../bit coin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -osx-signed --destination ../gitian.sigs/ ../bit coin/contrib/gitian-descriptors/gitian-osx-signer.yml
mv build/out/bitcoin-osx-signed.dmg ../bitcoin-binaries/${ VERSION } /bit coin-${ VERSION } -osx.dmg
./bin/gbuild -i --commit signature = ${ COMMIT } ../lite coin/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${ VERSION } -osx-signed --destination ../gitian.sigs.ltc/ ../lite coin/contrib/gitian-descriptors/gitian-osx-signer.yml
mv build/out/litecoin-osx-signed.dmg ../litecoin-binaries/${ VERSION } /lite coin-${ VERSION } -osx.dmg
fi
popd