Bug 485336, uploadsymbols failures when mozilla-central & tracemonkey nightlies complete at the same time, r=ted.mielczarek

This commit is contained in:
Nick Thomas 2009-06-18 16:19:02 +12:00
Родитель 5776974960
Коммит b26d0196f1
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -48,11 +48,12 @@
set -e
: ${SYMBOL_SERVER_HOST?} ${SYMBOL_SERVER_USER?} ${SYMBOL_SERVER_PATH?} ${1?"You must specify a symbol archive to upload"}
archive=`basename "$1"`
hash=`openssl dgst -sha1 "$1" | cut -f2 -d' '`
archive="${hash}-"`basename "$1"`
echo "Transferring symbols... $1"
scp ${SYMBOL_SERVER_PORT:+-P $SYMBOL_SERVER_PORT} \
${SYMBOL_SERVER_SSH_KEY:+-i "$SYMBOL_SERVER_SSH_KEY"} "$1" \
${SYMBOL_SERVER_USER}@${SYMBOL_SERVER_HOST}:${SYMBOL_SERVER_PATH}/
${SYMBOL_SERVER_USER}@${SYMBOL_SERVER_HOST}:${SYMBOL_SERVER_PATH}/"${archive}"
echo "Unpacking symbols on remote host..."
ssh -2 ${SYMBOL_SERVER_PORT:+-p $SYMBOL_SERVER_PORT} \
${SYMBOL_SERVER_SSH_KEY:+-i "$SYMBOL_SERVER_SSH_KEY"} \