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

Side by Side Diff: archive_build.sh

Issue 4363001: Update prebuilt.py call to use the _proper_ variable for finding the build root. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils@master
Patch Set: Created 10 years, 1 month 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/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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 "${LAST_CHANGE}/${HWQUAL_NAME}.tar.bz2" 266 "${LAST_CHANGE}/${HWQUAL_NAME}.tar.bz2"
267 fi 267 fi
268 268
269 269
270 if [ $FLAGS_prebuilt_upload -eq $FLAGS_TRUE ] 270 if [ $FLAGS_prebuilt_upload -eq $FLAGS_TRUE ]
271 then 271 then
272 # Construct prebuilt upload command. 272 # Construct prebuilt upload command.
273 # This will upload prebuilt packages to Google Storage. 273 # This will upload prebuilt packages to Google Storage.
274 prebuilt_cmd="${SCRIPTS_DIR}/prebuilt.py" 274 prebuilt_cmd="${SCRIPTS_DIR}/prebuilt.py"
275 prebuilt_cmd="$prebuilt_cmd -u gs://chromeos-prebuilt --git-sync -V master" 275 prebuilt_cmd="$prebuilt_cmd -u gs://chromeos-prebuilt --git-sync -V master"
276 prebuilt_cmd="$prebuilt_cmd -p $(readlink -f ../../../../build/chromiumos)" 276 prebuilt_cmd="$prebuilt_cmd -p ${GCLIENT_ROOT} -b ${FLAGS_board}"
277 prebuilt_cmd="$prebuilt_cmd -b ${FLAGS_board}"
278 277
279 if [ "${FLAGS_BOARD}" == "x86-generic" ] 278 if [ "${FLAGS_BOARD}" == "x86-generic" ]
280 then 279 then
281 prebuilt_cmd="$prebuilt_cmd --sync-host" 280 prebuilt_cmd="$prebuilt_cmd --sync-host"
282 fi 281 fi
283 282
284 echo "Running $prebuilt_cmd" 283 echo "Running $prebuilt_cmd"
285 $prebuilt_cmd 284 $prebuilt_cmd
286 fi 285 fi
287 286
(...skipping 25 matching lines...) Expand all
313 if [ $FLAGS_keep_max -gt 0 ] 312 if [ $FLAGS_keep_max -gt 0 ]
314 then 313 then
315 echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..." 314 echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..."
316 cd "$FLAGS_to" 315 cd "$FLAGS_to"
317 # +2 because line numbers start at 1 and need to skip LATEST file 316 # +2 because line numbers start at 1 and need to skip LATEST file
318 rm -rf `ls -t1 | tail --lines=+$(($FLAGS_keep_max + 2))` 317 rm -rf `ls -t1 | tail --lines=+$(($FLAGS_keep_max + 2))`
319 cd - 318 cd -
320 fi 319 fi
321 320
322 echo "Done." 321 echo "Done."
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