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

Side by Side Diff: gce/uploader_iteration.sh

Issue 409933002: [chrome-devtools-frontend] Fix SVN revision extraction from git-svn-id stamp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chrome-devtools-frontend
Patch Set: Created 6 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 | 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 28 matching lines...) Expand all
39 mark_step 'Getting Blink revisions blacklist' 39 mark_step 'Getting Blink revisions blacklist'
40 BLINK_REVISIONS_BLACKLIST_FILE=$GS_PATH/blink_revisions_blacklist 40 BLINK_REVISIONS_BLACKLIST_FILE=$GS_PATH/blink_revisions_blacklist
41 BLINK_REVISIONS_BLACKLIST="" 41 BLINK_REVISIONS_BLACKLIST=""
42 if gsutil ls "$BLINK_REVISIONS_BLACKLIST_FILE"; then 42 if gsutil ls "$BLINK_REVISIONS_BLACKLIST_FILE"; then
43 BLINK_REVISIONS_BLACKLIST=$(gsutil cat "$BLINK_REVISIONS_BLACKLIST_FILE") 43 BLINK_REVISIONS_BLACKLIST=$(gsutil cat "$BLINK_REVISIONS_BLACKLIST_FILE")
44 fi 44 fi
45 45
46 mark_step 'Working out SVN revisions list' 46 mark_step 'Working out SVN revisions list'
47 pushd blink 47 pushd blink
48 git fetch || exit $EXIT_BLINK_UPDATE 48 git fetch || exit $EXIT_BLINK_UPDATE
49 HEAD_BLINK_REVISION=$(git log -n 1 --all --grep="git-svn-id:" --pretty=medium | grep -Po "git-svn-id:[^@]*@\d+" | grep -Po "\d+") 49 HEAD_BLINK_REVISION=$(git log -n 1 --all --grep="git-svn-id:" --pretty=medium | grep -Po "git-svn-id:[^@]*@\d+" | grep -Po "@\d+" | grep -Po "\d+")
50 popd 50 popd
51 echo "Last committed was Blink revision $HEAD_BLINK_REVISION" 51 echo "Last committed was Blink revision $HEAD_BLINK_REVISION"
52 REVISION_LIST=$(seq $[LAST_BLINK_REVISION+1] $HEAD_BLINK_REVISION) 52 REVISION_LIST=$(seq $[LAST_BLINK_REVISION+1] $HEAD_BLINK_REVISION)
53 if [ -z "$REVISION_LIST" ]; then 53 if [ -z "$REVISION_LIST" ]; then
54 exit $EXIT_NO_UPDATED_BRANCHES 54 exit $EXIT_NO_UPDATED_BRANCHES
55 fi 55 fi
56 56
57 mark_step 'Building DevTools frontend for revisions and uploading to Cloud Stora ge' 57 mark_step 'Building DevTools frontend for revisions and uploading to Cloud Stora ge'
58 for REVISION in $REVISION_LIST; do 58 for REVISION in $REVISION_LIST; do
59 LOCAL_STORAGE_DIR=/uploader/storage 59 LOCAL_STORAGE_DIR=/uploader/storage
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 zip -9r $ZIP_FILE * || exit $EXIT_ZIP_FRONTEND 118 zip -9r $ZIP_FILE * || exit $EXIT_ZIP_FRONTEND
119 popd 119 popd
120 120
121 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}') 121 ZIP_SHA1=$(sha1sum $ZIP_FILE | awk '{print $1}')
122 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip" 122 mv $ZIP_FILE "$ZIPS_DIR/$ZIP_SHA1.zip"
123 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION" 123 echo "$ZIP_SHA1" > "$REVS_DIR/@$REVISION"
124 124
125 gsutil -m cp -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD 125 gsutil -m cp -R $LOCAL_STORAGE_DIR/* $GS_PATH || exit $EXIT_CS_UPLOAD
126 done 126 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