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

Side by Side Diff: gce/uploader_iteration.sh

Issue 1985973005: DevTools FE uploader: Update LASTCHANGE in addition to LASTCHANGE.blink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chrome-devtools-frontend
Patch Set: Created 4 years, 7 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 exit $EXIT_DEVTOOLS_GYP_FILE 132 exit $EXIT_DEVTOOLS_GYP_FILE
133 fi 133 fi
134 if [ -d ../../out ]; then 134 if [ -d ../../out ]; then
135 rm -rf ../../out 135 rm -rf ../../out
136 fi 136 fi
137 DEVTOOLS_DIR=$(dirname "$DEVTOOLS_GYP") 137 DEVTOOLS_DIR=$(dirname "$DEVTOOLS_GYP")
138 #TODO: need to calculate depth and output paths based on DEVTOOLS_DIR nestin g level 138 #TODO: need to calculate depth and output paths based on DEVTOOLS_DIR nestin g level
139 GYP_GENERATORS=ninja ../../tools/gyp/gyp --toplevel-dir="$DEVTOOLS_DIR" --de pth=../../../.. --generator-output=../../../.. "$DEVTOOLS_GYP" || exit $EXIT_GYP _DEVTOOLS 139 GYP_GENERATORS=ninja ../../tools/gyp/gyp --toplevel-dir="$DEVTOOLS_DIR" --de pth=../../../.. --generator-output=../../../.. "$DEVTOOLS_GYP" || exit $EXIT_GYP _DEVTOOLS
140 popd 140 popd
141 141
142 LASTCHANGE_FILE="build/util/LASTCHANGE.blink" 142 LASTCHANGE_FILE="build/util/LASTCHANGE"
143 echo "LASTCHANGE=$REVISION" > $LASTCHANGE_FILE 143 echo "LASTCHANGE=$REVISION" > $LASTCHANGE_FILE
144 LASTCHANGE_BLINK_FILE="build/util/LASTCHANGE.blink"
145 echo "LASTCHANGE=$REVISION" > $LASTCHANGE_BLINK_FILE
144 146
145 ninja -C out/Default devtools_frontend_resources || exit $EXIT_BUILD_FRONTEN D 147 ninja -C out/Default devtools_frontend_resources || exit $EXIT_BUILD_FRONTEN D
146 ZIP_FILE_NAME=devtools_frontend.zip 148 ZIP_FILE_NAME=devtools_frontend.zip
147 ZIP_FILE=$(pwd)/out/$ZIP_FILE_NAME 149 ZIP_FILE=$(pwd)/out/$ZIP_FILE_NAME
148 150
149 pushd out/Default/resources/inspector 151 pushd out/Default/resources/inspector
150 # Create an AppCache manifest and patch devtools.html and / or inspector.htm l to point to it 152 # Create an AppCache manifest and patch devtools.html and / or inspector.htm l to point to it
151 MANIFEST_FILE_NAME=$REVISION.manifest 153 MANIFEST_FILE_NAME=$REVISION.manifest
152 FALLBACK_ENTRIES= 154 FALLBACK_ENTRIES=
153 for DEVTOOLS_MAIN_HTML in devtools.html inspector.html; do 155 for DEVTOOLS_MAIN_HTML in devtools.html inspector.html; do
(...skipping 29 matching lines...) Expand all
183 185
184 popd 186 popd
185 187
186 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}') 188 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}')
187 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip" 189 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip"
188 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION" 190 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION"
189 191
190 # Comment out the line below for testing. 192 # Comment out the line below for testing.
191 gsutil -m cp -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD 193 gsutil -m cp -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD
192 done 194 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