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

Side by Side Diff: gce/uploader_iteration.sh

Issue 2829683005: DevTools: update LASTCHANGE for uploader_iteration.sh (Closed)
Patch Set: Created 3 years, 8 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 # 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 GYP_CHROMIUM_NO_ACTION=1 gclient sync -D -R || exit $EXIT_BLINK_UPDATE 122 GYP_CHROMIUM_NO_ACTION=1 gclient sync -D -R || exit $EXIT_BLINK_UPDATE
123 123
124 echo "Running GN" 124 echo "Running GN"
125 if [ -d out/Default ]; then 125 if [ -d out/Default ]; then
126 rm -rf out/Default 126 rm -rf out/Default
127 fi 127 fi
128 mkdir -p out/Default 128 mkdir -p out/Default
129 echo "is_debug=false" > out/Default/args.gn 129 echo "is_debug=false" > out/Default/args.gn
130 gn gen out/Default || exit $EXIT_GYP_DEVTOOLS 130 gn gen out/Default || exit $EXIT_GYP_DEVTOOLS
131 131
132 echo "Running ninja" 132 echo "Generating LASTCHANGE files"
133 LASTCHANGE_FILE="build/util/LASTCHANGE" 133 LASTCHANGE_FILE="build/util/LASTCHANGE"
134 echo "LASTCHANGE=$REVISION" > $LASTCHANGE_FILE 134 python build/util/lastchange.py > $LASTCHANGE_FILE
135 LASTCHANGE_BLINK_FILE="build/util/LASTCHANGE.blink" 135 LASTCHANGE_BLINK_FILE="build/util/LASTCHANGE.blink"
chenwilliam 2017/04/20 00:17:43 I think it might be OK to stop generating this fil
dgozman 2017/04/20 16:49:33 I vaguley remember the build/util/lastchange.py di
136 echo "LASTCHANGE=$REVISION" > $LASTCHANGE_BLINK_FILE 136 echo "LASTCHANGE=$REVISION" > $LASTCHANGE_BLINK_FILE
137 137
138 echo "Running ninja"
138 ninja -C out/Default devtools_frontend_resources || exit $EXIT_BUILD_FRONTEN D 139 ninja -C out/Default devtools_frontend_resources || exit $EXIT_BUILD_FRONTEN D
139 ZIP_FILE_NAME=devtools_frontend.zip 140 ZIP_FILE_NAME=devtools_frontend.zip
140 ZIP_FILE=$(pwd)/out/$ZIP_FILE_NAME 141 ZIP_FILE=$(pwd)/out/$ZIP_FILE_NAME
141 142
142 pushd out/Default/resources/inspector 143 pushd out/Default/resources/inspector
143 144
144 echo "Creating manifest" 145 echo "Creating manifest"
145 # Create an AppCache manifest and patch devtools.html and / or inspector.htm l to point to it 146 # Create an AppCache manifest and patch devtools.html and / or inspector.htm l to point to it
146 MANIFEST_FILE_NAME=$REVISION.manifest 147 MANIFEST_FILE_NAME=$REVISION.manifest
147 FALLBACK_ENTRIES= 148 FALLBACK_ENTRIES=
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 183
183 echo "Creating revs file" 184 echo "Creating revs file"
184 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}') 185 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}')
185 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip" 186 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip"
186 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION" 187 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION"
187 188
188 echo "Uploading to storage for revision $REVISION" 189 echo "Uploading to storage for revision $REVISION"
189 # Comment out the line below for testing. 190 # Comment out the line below for testing.
190 gsutil -m cp -n -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD 191 gsutil -m cp -n -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD
191 done 192 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