@@ -77,7 +77,7 @@ while :; do
77
77
-S|--signer)
78
78
if [ -n " $2 " ]
79
79
then
80
- SIGNER=$2
80
+ SIGNER=" $2 "
81
81
shift
82
82
else
83
83
echo ' Error: "--signer" requires a non-empty argument.'
190
190
# Get signer
191
191
if [[ -n " $1 " ]]
192
192
then
193
- SIGNER=$1
193
+ SIGNER=" $1 "
194
194
shift
195
195
fi
196
196
203
203
fi
204
204
205
205
# Check that a signer is specified
206
- if [[ $SIGNER == " " ]]
206
+ if [[ " $SIGNER " == " " ]]
207
207
then
208
208
echo " $scriptName : Missing signer."
209
209
echo " Try $scriptName --help for more information"
272
272
echo " Compiling ${VERSION} Linux"
273
273
echo " "
274
274
./bin/gbuild -j ${proc} -m ${mem} --commit bitcoin=${COMMIT} --url bitcoin=${url} ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
275
- ./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION} -linux --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
275
+ ./bin/gsign -p " $signProg " --signer " $SIGNER " --release ${VERSION} -linux --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
276
276
mv build/out/bitcoin-* .tar.gz build/out/src/bitcoin-* .tar.gz ../bitcoin-binaries/${VERSION}
277
277
fi
278
278
# Windows
282
282
echo " Compiling ${VERSION} Windows"
283
283
echo " "
284
284
./bin/gbuild -j ${proc} -m ${mem} --commit bitcoin=${COMMIT} --url bitcoin=${url} ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
285
- ./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION} -win-unsigned --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
285
+ ./bin/gsign -p " $signProg " --signer " $SIGNER " --release ${VERSION} -win-unsigned --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
286
286
mv build/out/bitcoin-* -win-unsigned.tar.gz inputs/bitcoin-win-unsigned.tar.gz
287
287
mv build/out/bitcoin-* .zip build/out/bitcoin-* .exe ../bitcoin-binaries/${VERSION}
288
288
fi
293
293
echo " Compiling ${VERSION} Mac OSX"
294
294
echo " "
295
295
./bin/gbuild -j ${proc} -m ${mem} --commit bitcoin=${COMMIT} --url bitcoin=${url} ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
296
- ./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION} -osx-unsigned --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
296
+ ./bin/gsign -p " $signProg " --signer " $SIGNER " --release ${VERSION} -osx-unsigned --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
297
297
mv build/out/bitcoin-* -osx-unsigned.tar.gz inputs/bitcoin-osx-unsigned.tar.gz
298
298
mv build/out/bitcoin-* .tar.gz build/out/bitcoin-* .dmg ../bitcoin-binaries/${VERSION}
299
299
fi
306
306
echo " Committing ${VERSION} Unsigned Sigs"
307
307
echo " "
308
308
pushd gitian.sigs
309
- git add ${VERSION} -linux/${SIGNER}
310
- git add ${VERSION} -win-unsigned/${SIGNER}
311
- git add ${VERSION} -osx-unsigned/${SIGNER}
309
+ git add ${VERSION} -linux/" ${SIGNER} "
310
+ git add ${VERSION} -win-unsigned/" ${SIGNER} "
311
+ git add ${VERSION} -osx-unsigned/" ${SIGNER} "
312
312
git commit -a -m " Add ${VERSION} unsigned sigs for ${SIGNER} "
313
313
popd
314
314
fi
358
358
echo " Signing ${VERSION} Windows"
359
359
echo " "
360
360
./bin/gbuild -i --commit signature=${COMMIT} ../bitcoin/contrib/gitian-descriptors/gitian-win-signer.yml
361
- ./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION} -win-signed --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win-signer.yml
361
+ ./bin/gsign -p " $signProg " --signer " $SIGNER " --release ${VERSION} -win-signed --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win-signer.yml
362
362
mv build/out/bitcoin-* win64-setup.exe ../bitcoin-binaries/${VERSION}
363
363
mv build/out/bitcoin-* win32-setup.exe ../bitcoin-binaries/${VERSION}
364
364
fi
369
369
echo " Signing ${VERSION} Mac OSX"
370
370
echo " "
371
371
./bin/gbuild -i --commit signature=${COMMIT} ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
372
- ./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION} -osx-signed --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
372
+ ./bin/gsign -p " $signProg " --signer " $SIGNER " --release ${VERSION} -osx-signed --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml
373
373
mv build/out/bitcoin-osx-signed.dmg ../bitcoin-binaries/${VERSION} /bitcoin-${VERSION} -osx.dmg
374
374
fi
375
375
popd
381
381
echo " "
382
382
echo " Committing ${VERSION} Signed Sigs"
383
383
echo " "
384
- git add ${VERSION} -win-signed/${SIGNER}
385
- git add ${VERSION} -osx-signed/${SIGNER}
384
+ git add ${VERSION} -win-signed/" ${SIGNER} "
385
+ git add ${VERSION} -osx-signed/" ${SIGNER} "
386
386
git commit -a -m " Add ${VERSION} signed binary sigs for ${SIGNER} "
387
387
popd
388
388
fi
0 commit comments