зеркало из https://github.com/mozilla/pjs.git
Bug 374813 - Replace rsync with scp and tar with zip, to work around Windows oddities, r=luser
This commit is contained in:
Родитель
64de317d42
Коммит
68cd091cd5
|
@ -41,10 +41,16 @@
|
|||
# AIRBAG_SYMBOL_USER : username on that host
|
||||
# AIRBAG_SYMBOL_PATH : path on that host to put symbols in
|
||||
#
|
||||
set -e
|
||||
|
||||
: ${AIRBAG_SYMBOL_SERVER?} ${AIRBAG_SYMBOL_USER?} ${AIRBAG_SYMBOL_PATH?} ${1?"You must specify a symbol archive to upload"}
|
||||
archive=`basename $1`
|
||||
echo "Transferring symbols... $1"
|
||||
rsync -avvz -e "ssh -2" $1 ${AIRBAG_SYMBOL_USER}@${AIRBAG_SYMBOL_SERVER}:${AIRBAG_SYMBOL_PATH}/
|
||||
scp -v $1 ${AIRBAG_SYMBOL_USER}@${AIRBAG_SYMBOL_SERVER}:${AIRBAG_SYMBOL_PATH}/
|
||||
echo "Unpacking symbols on remote host..."
|
||||
ssh -2 -l ${AIRBAG_SYMBOL_USER} ${AIRBAG_SYMBOL_SERVER} "cd ${AIRBAG_SYMBOL_PATH}; tar -xvjf $archive; rm -fv $archive"
|
||||
ssh -2 -l ${AIRBAG_SYMBOL_USER} ${AIRBAG_SYMBOL_SERVER} \
|
||||
"set -e;
|
||||
cd ${AIRBAG_SYMBOL_PATH};
|
||||
unzip $archive;
|
||||
rm -v $archive;"
|
||||
echo "Symbol transfer completed"
|
||||
|
|
Загрузка…
Ссылка в новой задаче