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

Side by Side Diff: gce/uploader_iteration.sh

Issue 890253002: [chrome-devtools-frontend] Work around presence of superfluous "trunk" dir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chrome-devtools-frontend
Patch Set: Created 5 years, 10 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 | 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 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This enables bash to treat any unhandled non-zero exit codes as "exceptions" 6 # This enables bash to treat any unhandled non-zero exit codes as "exceptions"
7 set -e 7 set -e
8 source $(dirname $0)/uploader_exit_codes.sh 8 source $(dirname $0)/uploader_exit_codes.sh
9 9
10 mark_step() { 10 mark_step() {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 echo "@$REVISION ==> $REVISION_COMMIT" 79 echo "@$REVISION ==> $REVISION_COMMIT"
80 GIT_INDEX_LOCK=".git/index.lock" 80 GIT_INDEX_LOCK=".git/index.lock"
81 if [ -e "$GIT_INDEX_LOCK" ]; then 81 if [ -e "$GIT_INDEX_LOCK" ]; then
82 # Can be left over from an interrupted iteration. 82 # Can be left over from an interrupted iteration.
83 # Safe to remove unless someone is trying to run two iterations in paral lel. 83 # Safe to remove unless someone is trying to run two iterations in paral lel.
84 echo "!!! Warning: removing Git index lock !!!" 84 echo "!!! Warning: removing Git index lock !!!"
85 rm -f "$GIT_INDEX_LOCK" || exit $EXIT_BLINK_UPDATE 85 rm -f "$GIT_INDEX_LOCK" || exit $EXIT_BLINK_UPDATE
86 fi 86 fi
87 git reset --hard $REVISION_COMMIT || exit $EXIT_BLINK_UPDATE 87 git reset --hard $REVISION_COMMIT || exit $EXIT_BLINK_UPDATE
88 88
89 DEVTOOLS_GYP=$(find . -type f -name devtools.gyp) 89 # Exclude "trunk" to work around branches that accidentally have a second
90 # copy of Blink sources inside it. See http://crbug.com/450975
91 DEVTOOLS_GYP=$(find . -type f -name devtools.gyp -not -path "*/trunk/*")
90 if [ -z "$DEVTOOLS_GYP" ]; then 92 if [ -z "$DEVTOOLS_GYP" ]; then
91 exit $EXIT_DEVTOOLS_GYP_FILE 93 exit $EXIT_DEVTOOLS_GYP_FILE
92 fi 94 fi
93 if [ -d ../devtools-frontend ]; then 95 if [ -d ../devtools-frontend ]; then
94 rm -rf ../devtools-frontend 96 rm -rf ../devtools-frontend
95 fi 97 fi
96 DEVTOOLS_DIR=$(dirname "$DEVTOOLS_GYP") 98 DEVTOOLS_DIR=$(dirname "$DEVTOOLS_GYP")
97 GYP_GENERATORS=ninja ../gyp/gyp --toplevel-dir="$DEVTOOLS_DIR" --depth=../.. /../../devtools-frontend --generator-output=../../../../devtools-frontend "$DEVT OOLS_GYP" || exit $EXIT_GYP_DEVTOOLS 99 GYP_GENERATORS=ninja ../gyp/gyp --toplevel-dir="$DEVTOOLS_DIR" --depth=../.. /../../devtools-frontend --generator-output=../../../../devtools-frontend "$DEVT OOLS_GYP" || exit $EXIT_GYP_DEVTOOLS
98 popd 100 popd
99 101
(...skipping 29 matching lines...) Expand all
129 zip -9r $ZIP_FILE * || exit $EXIT_ZIP_FRONTEND 131 zip -9r $ZIP_FILE * || exit $EXIT_ZIP_FRONTEND
130 popd 132 popd
131 133
132 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}') 134 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}')
133 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip" 135 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip"
134 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION" 136 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION"
135 137
136 # Comment out the line below for testing. 138 # Comment out the line below for testing.
137 gsutil -m cp -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD 139 gsutil -m cp -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD
138 done 140 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