@ -16,7 +16,7 @@ osx=true
@@ -16,7 +16,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
@ -30,7 +30,7 @@ commitFiles=true
@@ -30,7 +30,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
@ -38,9 +38,9 @@ version Version number, commit, or branch to build. If building a commit or bra
@@ -38,9 +38,9 @@ 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
-v| --verify Verify the G itian build
-b| --build Do a G itian build
-u| --url Specify the URL of the repository. Default is https://github.com/litecoin-project/lite coin
-v| --verify Verify the g itian build
-b| --build Do a g itian build
-s| --sign Make signed binaries for Windows and Mac OSX
-B| --buildsign Build both signed and unsigned binaries
-o| --os Specify which Operating Systems the build is for . Default is lwx. l for linux, w for windows, x for osx
@ -229,8 +229,8 @@ echo ${COMMIT}
@@ -229,8 +229,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 " ] ]
@ -244,7 +244,7 @@ then
@@ -244,7 +244,7 @@ then
fi
# Set up build
pushd ./bit coin
pushd ./lite coin
git fetch
git checkout ${ COMMIT }
popd
@ -253,7 +253,7 @@ popd
@@ -253,7 +253,7 @@ popd
if [ [ $build = true ] ]
then
# Make output folder
mkdir -p ./bit coin-binaries/${ VERSION }
mkdir -p ./lite coin-binaries/${ VERSION }
# Build Dependencies
echo ""
@ -263,7 +263,7 @@ then
@@ -263,7 +263,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 ] ]
@ -271,9 +271,9 @@ then
@@ -271,9 +271,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 ] ]
@ -281,10 +281,10 @@ then
@@ -281,10 +281,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 ] ]
@ -292,10 +292,10 @@ then
@@ -292,10 +292,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
@ -322,27 +322,27 @@ then
@@ -322,27 +322,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
@ -357,10 +357,10 @@ then
@@ -357,10 +357,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 ] ]
@ -368,9 +368,9 @@ then
@@ -368,9 +368,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