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

Side by Side Diff: tools/push-to-trunk.sh

Issue 10828210: tools/push-to-trunk.sh: Add a check whether grepping for the just-committed SVN revision number suc… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 2012 the V8 project authors. All rights reserved. 2 # Copyright 2012 the V8 project authors. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following 10 # copyright notice, this list of conditions and the following
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 echo ">>> Step $CURRENT_STEP: Sanity check." 297 echo ">>> Step $CURRENT_STEP: Sanity check."
298 confirm "Please check if your local checkout is sane: Inspect $VERSION_FILE, \ 298 confirm "Please check if your local checkout is sane: Inspect $VERSION_FILE, \
299 compile, run tests. Do you want to commit this new trunk revision to the \ 299 compile, run tests. Do you want to commit this new trunk revision to the \
300 repository?" 300 repository?"
301 [[ $? -eq 0 ]] || die "Execution canceled." 301 [[ $? -eq 0 ]] || die "Execution canceled."
302 fi 302 fi
303 303
304 let CURRENT_STEP+=1 304 let CURRENT_STEP+=1
305 if [ $START_STEP -le $CURRENT_STEP ] ; then 305 if [ $START_STEP -le $CURRENT_STEP ] ; then
306 echo ">>> Step $CURRENT_STEP: Commit to SVN." 306 echo ">>> Step $CURRENT_STEP: Commit to SVN."
307 git svn dcommit | tee >(grep -E "^Committed r[0-9]+" \ 307 git svn dcommit 2>&1 | tee >(grep -E "^Committed r[0-9]+" \
308 | sed -e 's/^Committed r\([0-9]\+\)/\1/' \ 308 | sed -e 's/^Committed r\([0-9]\+\)/\1/' \
309 > "$TRUNK_REVISION_FILE") \ 309 > "$TRUNK_REVISION_FILE") \
310 || die "'git svn dcommit' failed." 310 || die "'git svn dcommit' failed."
311 TRUNK_REVISION=$(cat "$TRUNK_REVISION_FILE") 311 TRUNK_REVISION=$(cat "$TRUNK_REVISION_FILE")
312 # Sometimes grepping for the revision fails. No idea why. If you figure
313 # out why it is flaky, please do fix it properly.
314 if [ -z "$TRUNK_REVISION" ] ; then
315 echo "Sorry, grepping for the SVN revision failed. Please look for it in \
316 the last command's output above and provide it manually (just the number, \
317 without the leading \"r\")."
318 while [ -z "$TRUNK_REVISION" ] ; do
319 echo -n "> "
320 read TRUNK_REVISION
321 done
322 fi
312 persist "TRUNK_REVISION" 323 persist "TRUNK_REVISION"
313 rm -f "$TRUNK_REVISION_FILE" 324 rm -f "$TRUNK_REVISION_FILE"
314 fi 325 fi
315 326
316 let CURRENT_STEP+=1 327 let CURRENT_STEP+=1
317 if [ $START_STEP -le $CURRENT_STEP ] ; then 328 if [ $START_STEP -le $CURRENT_STEP ] ; then
318 echo ">>> Step $CURRENT_STEP: Tag the new revision." 329 echo ">>> Step $CURRENT_STEP: Tag the new revision."
319 restore_version_if_unset 330 restore_version_if_unset
320 git svn tag $MAJOR.$MINOR.$BUILD -m "Tagging version $MAJOR.$MINOR.$BUILD" \ 331 git svn tag $MAJOR.$MINOR.$BUILD -m "Tagging version $MAJOR.$MINOR.$BUILD" \
321 || die "'git svn tag' failed." 332 || die "'git svn tag' failed."
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 update the v8rel spreadsheet:" 403 update the v8rel spreadsheet:"
393 else 404 else
394 echo "Congratulations, you have successfully created the trunk revision \ 405 echo "Congratulations, you have successfully created the trunk revision \
395 $MAJOR.$MINOR.$BUILD. Please don't forget to roll this new version into \ 406 $MAJOR.$MINOR.$BUILD. Please don't forget to roll this new version into \
396 Chromium, and to update the v8rel spreadsheet:" 407 Chromium, and to update the v8rel spreadsheet:"
397 fi 408 fi
398 echo -e "$MAJOR.$MINOR.$BUILD\ttrunk\t$TRUNK_REVISION" 409 echo -e "$MAJOR.$MINOR.$BUILD\ttrunk\t$TRUNK_REVISION"
399 common_cleanup 410 common_cleanup
400 [[ "$TRUNKBRANCH" != "$CURRENT_BRANCH" ]] && git branch -D $TRUNKBRANCH 411 [[ "$TRUNKBRANCH" != "$CURRENT_BRANCH" ]] && git branch -D $TRUNKBRANCH
401 fi 412 fi
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