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

Side by Side Diff: archive_build.sh

Issue 2803030: Fixing typo (Closed) Base URL: ssh://git@chromiumos-git/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/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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 cd - 178 cd -
179 179
180 # Update LATEST file 180 # Update LATEST file
181 echo "$LAST_CHANGE" > "${FLAGS_to}/LATEST" 181 echo "$LAST_CHANGE" > "${FLAGS_to}/LATEST"
182 182
183 # Make sure files are readable 183 # Make sure files are readable
184 chmod 644 "$ZIPFILE" "${FLAGS_to}/LATEST" 184 chmod 644 "$ZIPFILE" "${FLAGS_to}/LATEST"
185 chmod 755 "$OUTDIR" 185 chmod 755 "$OUTDIR"
186 186
187 187
188 GSUTIL_GENERATE_INDEX="${FLAGS_gsd_gen_index} -a ${FLAGS_acl}" 188 GSD_GENERATE_INDEX="${FLAGS_gsd_gen_index} -a ${FLAGS_acl}"
189 189
190 function gsutil_archive() { 190 function gsutil_archive() {
191 IN_PATH="$1" 191 IN_PATH="$1"
192 OUT_PATH="$2" 192 OUT_PATH="$2"
193 if [ $FLAGS_gsutil_archive != "" ] 193 if [ $FLAGS_gsutil_archive != "" ]
194 then 194 then
195 FULL_OUT_PATH="${FLAGS_gsutil_archive}/${OUT_PATH}" 195 FULL_OUT_PATH="${FLAGS_gsutil_archive}/${OUT_PATH}"
196 echo "Using gsutil to archive to ${OUT_PATH}..." 196 echo "Using gsutil to archive to ${OUT_PATH}..."
197 ${FLAGS_gsutil} cp ${IN_PATH} ${FULL_OUT_PATH} 197 ${FLAGS_gsutil} cp ${IN_PATH} ${FULL_OUT_PATH}
198 ${FLAGS_gsutil} setacl ${FLAGS_acl} ${FULL_OUT_PATH} 198 ${FLAGS_gsutil} setacl ${FLAGS_acl} ${FULL_OUT_PATH}
(...skipping 28 matching lines...) Expand all
227 if [ $FLAGS_keep_max -gt 0 ] 227 if [ $FLAGS_keep_max -gt 0 ]
228 then 228 then
229 echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..." 229 echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..."
230 cd "$FLAGS_to" 230 cd "$FLAGS_to"
231 # +2 because line numbers start at 1 and need to skip LATEST file 231 # +2 because line numbers start at 1 and need to skip LATEST file
232 rm -rf `ls -t1 | tail --lines=+$(($FLAGS_keep_max + 2))` 232 rm -rf `ls -t1 | tail --lines=+$(($FLAGS_keep_max + 2))`
233 cd - 233 cd -
234 fi 234 fi
235 235
236 echo "Done." 236 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