2 # Copyright 2013 the V8 project authors. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are
7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following
11 # disclaimer in the documentation and/or other materials provided
12 # with the distribution.
13 # * Neither the name of Google Inc. nor the names of its
14 # contributors may be used to endorse or promote products derived
15 # from this software without specific prior written permission.
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 ########## Global variable definitions
32 DEPS_STRING='"v8_revision":'
35 V8="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
37 ########## Function definitions
43 Run in chromium/src to get information about V8 rolls.
47 -n Number of rolls to print information about.
48 -s Chromium git hash to start printing V8 information about.
53 git show $1:DEPS | grep -n $DEPS_STRING | cut -d":" -f1
57 git blame -L$(v8_line $1),+1 $1 DEPS | grep $DEPS_STRING
61 sed -e 's/^.*"\([0-9]\+\)",$/\1/'
73 msg=$(git log --format="%h %ci %ce" -1 $1)
74 h=$(echo $msg | cut -d" " -f1)
75 d=$(echo $msg | cut -d" " -f2)
76 t=$(echo $msg | cut -d" " -f3)
77 a=$(echo $msg | cut -d" " -f5)
78 a1=$(echo $a | cut -d"@" -f1)
79 a2=$(echo $a | cut -d"@" -f2)
90 for i in $(seq 1 $1); do
92 roll=$(echo $info | v8_roll $roll)
93 trunk=$(echo $info | v8_svn $roll)
94 echo "$(v8_revision $trunk) $trunk $(find_rev $roll) $(msg $roll)"
99 ########## Option parsing
104 while getopts ":hn:s:" OPTION ; do
113 ?) echo "Illegal option: -$OPTARG"
120 rolls $REVISIONS $START