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

Side by Side Diff: gce/uploader_iteration.sh

Issue 960873003: [chrome-devtools-frontend] Generate LASTCHANGE.blink in the uploader script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chrome-devtools-frontend
Patch Set: Created 5 years, 9 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 if [ -z "$DEVTOOLS_GYP" ]; then 94 if [ -z "$DEVTOOLS_GYP" ]; then
95 exit $EXIT_DEVTOOLS_GYP_FILE 95 exit $EXIT_DEVTOOLS_GYP_FILE
96 fi 96 fi
97 if [ -d ../devtools-frontend ]; then 97 if [ -d ../devtools-frontend ]; then
98 rm -rf ../devtools-frontend 98 rm -rf ../devtools-frontend
99 fi 99 fi
100 DEVTOOLS_DIR=$(dirname "$DEVTOOLS_GYP") 100 DEVTOOLS_DIR=$(dirname "$DEVTOOLS_GYP")
101 GYP_GENERATORS=ninja ../gyp/gyp --toplevel-dir="$DEVTOOLS_DIR" --depth=../.. /../../devtools-frontend --generator-output=../../../../devtools-frontend "$DEVT OOLS_GYP" || exit $EXIT_GYP_DEVTOOLS 101 GYP_GENERATORS=ninja ../gyp/gyp --toplevel-dir="$DEVTOOLS_DIR" --depth=../.. /../../devtools-frontend --generator-output=../../../../devtools-frontend "$DEVT OOLS_GYP" || exit $EXIT_GYP_DEVTOOLS
102 popd 102 popd
103 103
104 LASTCHANGE_DIR="$SOURCE_DIR/../build/util"
105 LASTCHANGE_FILE="$LASTCHANGE_DIR/LASTCHANGE.blink"
106 mkdir -p $LASTCHANGE_DIR
107 echo "LASTCHANGE=$REVISION" > $LASTCHANGE_FILE
108
104 ninja -C devtools-frontend/out/Default devtools_frontend_resources || exit $ EXIT_BUILD_FRONTEND 109 ninja -C devtools-frontend/out/Default devtools_frontend_resources || exit $ EXIT_BUILD_FRONTEND
105 ZIP_FILE_NAME=devtools_frontend.zip 110 ZIP_FILE_NAME=devtools_frontend.zip
106 ZIP_FILE=$(pwd)/devtools-frontend/$ZIP_FILE_NAME 111 ZIP_FILE=$(pwd)/devtools-frontend/$ZIP_FILE_NAME
107 112
108 pushd devtools-frontend/out/Default/resources/inspector 113 pushd devtools-frontend/out/Default/resources/inspector
109 # Create an AppCache manifest and patch devtools.html and / or inspector.htm l to point to it 114 # Create an AppCache manifest and patch devtools.html and / or inspector.htm l to point to it
110 MANIFEST_FILE_NAME=$REVISION.manifest 115 MANIFEST_FILE_NAME=$REVISION.manifest
111 FALLBACK_ENTRIES= 116 FALLBACK_ENTRIES=
112 for DEVTOOLS_MAIN_HTML in devtools.html inspector.html; do 117 for DEVTOOLS_MAIN_HTML in devtools.html inspector.html; do
113 if [ ! -f "$DEVTOOLS_MAIN_HTML" ]; then 118 if [ ! -f "$DEVTOOLS_MAIN_HTML" ]; then
(...skipping 28 matching lines...) Expand all
142 147
143 popd 148 popd
144 149
145 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}') 150 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}')
146 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip" 151 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip"
147 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION" 152 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION"
148 153
149 # Comment out the line below for testing. 154 # Comment out the line below for testing.
150 gsutil -m cp -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD 155 gsutil -m cp -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD
151 done 156 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