Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Side by Side Diff: bin/cros_copy_upgrade_server.sh

Issue 3010008: Fix move of shflags (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to push the output of build_image.sh to a remote image server 7 # Script to push the output of build_image.sh to a remote image server
8 8
9 # Load common constants. This should be the first executable line. 9 # Load common constants. This should be the first executable line.
10 # The path to common.sh should be relative to your script's location. 10 # The path to common.sh should be relative to your script's location.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 echo "Creating dev server in ${FLAGS_upgrade_server}:${FLAGS_dest_path}..." 61 echo "Creating dev server in ${FLAGS_upgrade_server}:${FLAGS_dest_path}..."
62 62
63 require_upgrade_server 63 require_upgrade_server
64 # Create new empty directory to hold server components 64 # Create new empty directory to hold server components
65 ssh "${FLAGS_upgrade_server}" rm -rf "${FLAGS_dest_path}" || true 65 ssh "${FLAGS_upgrade_server}" rm -rf "${FLAGS_dest_path}" || true
66 ssh "${FLAGS_upgrade_server}" mkdir -p "${FLAGS_dest_path}/python" 66 ssh "${FLAGS_upgrade_server}" mkdir -p "${FLAGS_dest_path}/python"
67 67
68 # Copy server components into place 68 # Copy server components into place
69 (cd ${SCRIPTS_DIR}/../.. && \ 69 (cd ${SCRIPTS_DIR}/../.. && \
70 tar zcf - --exclude=.git --exclude=.svn \ 70 tar zcf - --exclude=.git --exclude=.svn \
71 src/scripts/lib \
71 src/scripts/start_devserver \ 72 src/scripts/start_devserver \
72 src/scripts/{common,get_latest_image,mk_memento_images}.sh \ 73 src/scripts/{common,get_latest_image,mk_memento_images}.sh \
73 src/third_party/shflags src/platform/dev) | \ 74 src/platform/dev) | \
74 ssh ${FLAGS_upgrade_server} "cd ${FLAGS_dest_path} && tar zxf -" 75 ssh ${FLAGS_upgrade_server} "cd ${FLAGS_dest_path} && tar zxf -"
75 76
76 # Copy Python web library into place out of the chroot 77 # Copy Python web library into place out of the chroot
77 (cd ${SCRIPTS_DIR}/../../chroot/usr/lib/python*/site-packages && \ 78 (cd ${SCRIPTS_DIR}/../../chroot/usr/lib/python*/site-packages && \
78 tar zcf - web*) | \ 79 tar zcf - web*) | \
79 ssh ${FLAGS_upgrade_server} "cd ${FLAGS_dest_path}/python && tar zxf -" 80 ssh ${FLAGS_upgrade_server} "cd ${FLAGS_dest_path}/python && tar zxf -"
80 } 81 }
81 82
82 # Copy the latest image over to archive server 83 # Copy the latest image over to archive server
83 create_archive_dir () { 84 create_archive_dir () {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 echo "Running ${SCRIPTS_DIR}/image_to_live.sh $live_args" 198 echo "Running ${SCRIPTS_DIR}/image_to_live.sh $live_args"
198 ${SCRIPTS_DIR}/image_to_live.sh $live_args & 199 ${SCRIPTS_DIR}/image_to_live.sh $live_args &
199 else 200 else
200 echo "Start client upgrade using:" 201 echo "Start client upgrade using:"
201 echo " ${SCRIPTS_DIR}/image_to_live.sh ${live_args}<client_ip_address>" 202 echo " ${SCRIPTS_DIR}/image_to_live.sh ${live_args}<client_ip_address>"
202 fi 203 fi
203 204
204 wait ${server_pid} 205 wait ${server_pid}
205 fi 206 fi
206 207
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698