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

Side by Side Diff: archive_build.sh

Issue 5884001: Fix the path of chromeos_version.sh in archive_build.sh (Closed) Base URL: http://git.chromium.org/git/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 | 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 echo "$FLAGS_from does not exist. Exiting..." 86 echo "$FLAGS_from does not exist. Exiting..."
87 exit 1 87 exit 1
88 fi 88 fi
89 89
90 if [ $FLAGS_official_build -eq $FLAGS_TRUE ] 90 if [ $FLAGS_official_build -eq $FLAGS_TRUE ]
91 then 91 then
92 CHROMEOS_OFFICIAL=1 92 CHROMEOS_OFFICIAL=1
93 fi 93 fi
94 94
95 # Get version information 95 # Get version information
96 . "${SCRIPTS_DIR}/chromeos_version.sh" 96 . ${SRC_ROOT}/third_party/chromiumos-overlay/chromeos/config/chromeos_version.sh
97 97
98 # Get git hash 98 # Get git hash
99 # Use git:8 chars of sha1 99 # Use git:8 chars of sha1
100 REVISION=$(git rev-parse HEAD) 100 REVISION=$(git rev-parse HEAD)
101 REVISION=${REVISION:0:8} 101 REVISION=${REVISION:0:8}
102 102
103 # Use the version number plus revision as the last change. (Need both, since 103 # Use the version number plus revision as the last change. (Need both, since
104 # trunk builds multiple times with the same version string.) 104 # trunk builds multiple times with the same version string.)
105 LAST_CHANGE="${CHROMEOS_VERSION_STRING}-r${REVISION}" 105 LAST_CHANGE="${CHROMEOS_VERSION_STRING}-r${REVISION}"
106 if [ -n "$FLAGS_build_number" ] 106 if [ -n "$FLAGS_build_number" ]
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 if [ $FLAGS_keep_max -gt 0 ] 313 if [ $FLAGS_keep_max -gt 0 ]
314 then 314 then
315 echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..." 315 echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..."
316 cd "$FLAGS_to" 316 cd "$FLAGS_to"
317 # +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
318 rm -rf `ls -t1 | tail --lines=+$(($FLAGS_keep_max + 2))` 318 rm -rf `ls -t1 | tail --lines=+$(($FLAGS_keep_max + 2))`
319 cd - 319 cd -
320 fi 320 fi
321 321
322 echo "Done." 322 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