Bug 392244 - "Allow alternate ssh port in upload_symbols.sh". r=luser, a=bzbarsky.

This commit is contained in:
bent.mozilla@gmail.com 2007-08-28 16:48:09 -07:00
Родитель dc650f5892
Коммит 204a16ee38
1 изменённых файлов: 6 добавлений и 3 удалений

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

@ -41,18 +41,21 @@
# SYMBOL_SERVER_USER : username on that host # SYMBOL_SERVER_USER : username on that host
# SYMBOL_SERVER_PATH : path on that host to put symbols in # SYMBOL_SERVER_PATH : path on that host to put symbols in
# #
# And will use the following optional environment variable if set: # And will use the following optional environment variables if set:
# SYMBOL_SERVER_SSH_KEY : path to a ssh private key to use # SYMBOL_SERVER_SSH_KEY : path to a ssh private key to use
# SYMBOL_SERVER_PORT : port to use for ssh
# #
set -e set -e
: ${SYMBOL_SERVER_HOST?} ${SYMBOL_SERVER_USER?} ${SYMBOL_SERVER_PATH?} ${1?"You must specify a symbol archive to upload"} : ${SYMBOL_SERVER_HOST?} ${SYMBOL_SERVER_USER?} ${SYMBOL_SERVER_PATH?} ${1?"You must specify a symbol archive to upload"}
archive=`basename $1` archive=`basename $1`
echo "Transferring symbols... $1" echo "Transferring symbols... $1"
scp -v ${SYMBOL_SERVER_SSH_KEY:+-i "$SYMBOL_SERVER_SSH_KEY"} $1 \ scp -v ${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}/
echo "Unpacking symbols on remote host..." echo "Unpacking symbols on remote host..."
ssh -2 ${SYMBOL_SERVER_SSH_KEY:+-i "$SYMBOL_SERVER_SSH_KEY"} \ ssh -2 ${SYMBOL_SERVER_PORT:+-p $SYMBOL_SERVER_PORT} \
${SYMBOL_SERVER_SSH_KEY:+-i "$SYMBOL_SERVER_SSH_KEY"} \
-l ${SYMBOL_SERVER_USER} ${SYMBOL_SERVER_HOST} \ -l ${SYMBOL_SERVER_USER} ${SYMBOL_SERVER_HOST} \
"set -e; "set -e;
umask 0022; umask 0022;