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

Side by Side Diff: archive_build.sh

Issue 5689004: Moving generating au-generator.zip file to build_image. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | build_image » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 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 archive build results. Used by the buildbots. 7 # Script to archive build results. Used by the buildbots.
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 chmod 644 "${FACTORY_ZIPFILE}" 227 chmod 644 "${FACTORY_ZIPFILE}"
228 fi 228 fi
229 cd - 229 cd -
230 230
231 # Update LATEST file 231 # Update LATEST file
232 echo "$LAST_CHANGE" > "${FLAGS_to}/LATEST" 232 echo "$LAST_CHANGE" > "${FLAGS_to}/LATEST"
233 233
234 # Make sure files are readable 234 # Make sure files are readable
235 chmod 644 "$ZIPFILE" "${FLAGS_to}/LATEST" 235 chmod 644 "$ZIPFILE" "${FLAGS_to}/LATEST"
236 chmod 755 "$OUTDIR" 236 chmod 755 "$OUTDIR"
237 cp -f "${FLAGS_from}/au-generator.zip" "${OUTDIR}/"
237 238
238 239
239 function gsutil_archive() { 240 function gsutil_archive() {
240 IN_PATH="$1" 241 IN_PATH="$1"
241 OUT_PATH="$2" 242 OUT_PATH="$2"
242 if [ -n "$FLAGS_gsutil_archive" ] 243 if [ -n "$FLAGS_gsutil_archive" ]
243 then 244 then
244 FULL_OUT_PATH="${FLAGS_gsutil_archive}/${OUT_PATH}" 245 FULL_OUT_PATH="${FLAGS_gsutil_archive}/${OUT_PATH}"
245 echo "Using gsutil to archive to ${OUT_PATH}..." 246 echo "Using gsutil to archive to ${OUT_PATH}..."
246 ${FLAGS_gsutil} cp ${IN_PATH} ${FULL_OUT_PATH} 247 ${FLAGS_gsutil} cp ${IN_PATH} ${FULL_OUT_PATH}
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 if [ $FLAGS_keep_max -gt 0 ] 313 if [ $FLAGS_keep_max -gt 0 ]
313 then 314 then
314 echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..." 315 echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..."
315 cd "$FLAGS_to" 316 cd "$FLAGS_to"
316 # +2 because line numbers start at 1 and need to skip LATEST file 317 # +2 because line numbers start at 1 and need to skip LATEST file
317 rm -rf `ls -t1 | tail --lines=+$(($FLAGS_keep_max + 2))` 318 rm -rf `ls -t1 | tail --lines=+$(($FLAGS_keep_max + 2))`
318 cd - 319 cd -
319 fi 320 fi
320 321
321 echo "Done." 322 echo "Done."
OLDNEW
« no previous file with comments | « no previous file | build_image » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698