| OLD | NEW |
| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 let CURRENT_STEP+=1 | 325 let CURRENT_STEP+=1 |
| 326 if [ $START_STEP -le $CURRENT_STEP ] ; then | 326 if [ $START_STEP -le $CURRENT_STEP ] ; then |
| 327 echo ">>> Step $CURRENT_STEP: Switch to Chromium checkout." | 327 echo ">>> Step $CURRENT_STEP: Switch to Chromium checkout." |
| 328 V8_PATH=$(pwd) | 328 V8_PATH=$(pwd) |
| 329 persist "V8_PATH" | 329 persist "V8_PATH" |
| 330 cd "$CHROME_PATH" | 330 cd "$CHROME_PATH" |
| 331 initial_environment_checks | 331 initial_environment_checks |
| 332 # Check for a clean workdir. | 332 # Check for a clean workdir. |
| 333 [[ -z "$(git status -s -uno)" ]] \ | 333 [[ -z "$(git status -s -uno)" ]] \ |
| 334 || die "Workspace is not clean. Please commit or undo your changes." | 334 || die "Workspace is not clean. Please commit or undo your changes." |
| 335 # Assert that the DEPS file is there. |
| 336 [[ -w "DEPS" ]] || die "DEPS file not present or not writable; \ |
| 337 current directory is: $(pwd)." |
| 335 fi | 338 fi |
| 336 | 339 |
| 337 let CURRENT_STEP+=1 | 340 let CURRENT_STEP+=1 |
| 338 if [ $START_STEP -le $CURRENT_STEP ] ; then | 341 if [ $START_STEP -le $CURRENT_STEP ] ; then |
| 339 echo ">>> Step $CURRENT_STEP: Update the checkout and create a new branch." | 342 echo ">>> Step $CURRENT_STEP: Update the checkout and create a new branch." |
| 340 git checkout master || die "'git checkout master' failed." | 343 git checkout master || die "'git checkout master' failed." |
| 341 git pull || die "'git pull' failed, please try again." | 344 git pull || die "'git pull' failed, please try again." |
| 342 restore_if_unset "TRUNK_REVISION" | 345 restore_if_unset "TRUNK_REVISION" |
| 343 git checkout -b "v8-roll-$TRUNK_REVISION" \ | 346 git checkout -b "v8-roll-$TRUNK_REVISION" \ |
| 344 || die "Failed to checkout a new branch." | 347 || die "Failed to checkout a new branch." |
| 345 fi | 348 fi |
| 346 | 349 |
| 347 let CURRENT_STEP+=1 | 350 let CURRENT_STEP+=1 |
| 348 if [ $START_STEP -le $CURRENT_STEP ] ; then | 351 if [ $START_STEP -le $CURRENT_STEP ] ; then |
| 349 echo ">>> Step $CURRENT_STEP: Create and upload CL." | 352 echo ">>> Step $CURRENT_STEP: Create and upload CL." |
| 350 # Patch DEPS file. | 353 # Patch DEPS file. |
| 351 sed -e "/\"v8_revision\": /s/\"[0-9]+\"/\"$TRUNK_REVISION\"/" \ | 354 sed -r -e "/\"v8_revision\": /s/\"[0-9]+\"/\"$TRUNK_REVISION\"/" \ |
| 352 -i DEPS | 355 -i DEPS |
| 353 restore_version_if_unset | 356 restore_version_if_unset |
| 354 echo -n "Please enter the email address of a reviewer for the roll CL: " | 357 echo -n "Please enter the email address of a reviewer for the roll CL: " |
| 355 read REVIEWER | 358 read REVIEWER |
| 356 git commit -am "Update V8 to version $MAJOR.$MINOR.$BUILD. | 359 git commit -am "Update V8 to version $MAJOR.$MINOR.$BUILD. |
| 357 | 360 |
| 358 TBR=$REVIEWER" || die "'git commit' failed." | 361 TBR=$REVIEWER" || die "'git commit' failed." |
| 359 git cl upload --send-mail --use-commit-queue \ | 362 git cl upload --send-mail --use-commit-queue \ |
| 360 || die "'git cl upload' failed, please try again." | 363 || die "'git cl upload' failed, please try again." |
| 361 echo "CL uploaded and sent to commit queue." | 364 echo "CL uploaded and sent to commit queue." |
| (...skipping 18 matching lines...) Expand all Loading... |
| 380 update the v8rel spreadsheet:" | 383 update the v8rel spreadsheet:" |
| 381 else | 384 else |
| 382 echo "Congratulations, you have successfully created the trunk revision \ | 385 echo "Congratulations, you have successfully created the trunk revision \ |
| 383 $MAJOR.$MINOR.$BUILD. Please don't forget to roll this new version into \ | 386 $MAJOR.$MINOR.$BUILD. Please don't forget to roll this new version into \ |
| 384 Chromium, and to update the v8rel spreadsheet:" | 387 Chromium, and to update the v8rel spreadsheet:" |
| 385 fi | 388 fi |
| 386 echo -e "$MAJOR.$MINOR.$BUILD\ttrunk\t$TRUNK_REVISION" | 389 echo -e "$MAJOR.$MINOR.$BUILD\ttrunk\t$TRUNK_REVISION" |
| 387 common_cleanup | 390 common_cleanup |
| 388 [[ "$TRUNKBRANCH" != "$CURRENT_BRANCH" ]] && git branch -D $TRUNKBRANCH | 391 [[ "$TRUNKBRANCH" != "$CURRENT_BRANCH" ]] && git branch -D $TRUNKBRANCH |
| 389 fi | 392 fi |
| OLD | NEW |