OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright 2011 the V8 project authors. All rights reserved. | 2 # Copyright 2011 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 persist "BUILD" | 195 persist "BUILD" |
196 | 196 |
197 DATE=$(date +%Y-%m-%d) | 197 DATE=$(date +%Y-%m-%d) |
198 persist "DATE" | 198 persist "DATE" |
199 echo "$DATE: Version $MAJOR.$MINOR.$BUILD" > "$CHANGELOG_ENTRY_FILE" | 199 echo "$DATE: Version $MAJOR.$MINOR.$BUILD" > "$CHANGELOG_ENTRY_FILE" |
200 echo "" >> "$CHANGELOG_ENTRY_FILE" | 200 echo "" >> "$CHANGELOG_ENTRY_FILE" |
201 COMMITS=$(git log $LASTPUSH..HEAD --format=%H) | 201 COMMITS=$(git log $LASTPUSH..HEAD --format=%H) |
202 for commit in $COMMITS ; do | 202 for commit in $COMMITS ; do |
203 # Get the commit's title line. | 203 # Get the commit's title line. |
204 git log -1 $commit --format="%w(80,8,8)%s" >> "$CHANGELOG_ENTRY_FILE" | 204 git log -1 $commit --format="%w(80,8,8)%s" >> "$CHANGELOG_ENTRY_FILE" |
205 # Grep for "BUG=xxxx" lines in the commit message. | 205 # Grep for "BUG=xxxx" lines in the commit message and convert them to |
206 git log -1 $commit --format="%b" | grep BUG= | grep -v "BUG=$" \ | 206 # "(issue xxxx)". |
207 | sed -e 's/^/ /' \ | 207 git log -1 $commit --format="%B" \ |
208 >> "$CHANGELOG_ENTRY_FILE" | 208 | grep "^BUG=" | grep -v "BUG=$" \ |
| 209 | sed -e 's/^/ /' \ |
| 210 | sed -e 's/BUG=v8:\(.*\)$/(issue \1)/' \ |
| 211 | sed -e 's/BUG=\(.*\)$/(Chromium issue \1)/' \ |
| 212 >> "$CHANGELOG_ENTRY_FILE" |
209 # Append the commit's author for reference. | 213 # Append the commit's author for reference. |
210 git log -1 $commit --format="%w(80,8,8)(%an)" >> "$CHANGELOG_ENTRY_FILE" | 214 git log -1 $commit --format="%w(80,8,8)(%an)" >> "$CHANGELOG_ENTRY_FILE" |
211 echo "" >> "$CHANGELOG_ENTRY_FILE" | 215 echo "" >> "$CHANGELOG_ENTRY_FILE" |
212 done | 216 done |
213 fi | 217 fi |
214 | 218 |
215 if [ $STEP -le 5 ] ; then | 219 if [ $STEP -le 5 ] ; then |
216 echo ">>> Step 5: Edit ChangeLog entry." | 220 echo ">>> Step 5: Edit ChangeLog entry." |
217 echo -n "Please press <Return> to have your EDITOR open the ChangeLog entry, \ | 221 echo -n "Please press <Return> to have your EDITOR open the ChangeLog entry, \ |
218 then edit its contents to your liking. When you're done, save the file and \ | 222 then edit its contents to your liking. When you're done, save the file and \ |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 echo ">>> Step 20: Done!" | 426 echo ">>> Step 20: Done!" |
423 restore_if_unset "MAJOR" | 427 restore_if_unset "MAJOR" |
424 restore_if_unset "MINOR" | 428 restore_if_unset "MINOR" |
425 restore_if_unset "BUILD" | 429 restore_if_unset "BUILD" |
426 echo "Congratulations, you have successfully created the trunk revision \ | 430 echo "Congratulations, you have successfully created the trunk revision \ |
427 $MAJOR.$MINOR.$BUILD. Please don't forget to update the v8rel spreadsheet, \ | 431 $MAJOR.$MINOR.$BUILD. Please don't forget to update the v8rel spreadsheet, \ |
428 and to roll this new version into Chromium." | 432 and to roll this new version into Chromium." |
429 # Clean up all temporary files. | 433 # Clean up all temporary files. |
430 rm -f "$PERSISTFILE_BASENAME"* | 434 rm -f "$PERSISTFILE_BASENAME"* |
431 fi | 435 fi |
OLD | NEW |