range_int_cst_p handling in extract_range_from_binary_expr_1
[official-gcc.git] / contrib / reghunt / bin / gcc-svn-patchlist
blob02b2046a8f06a4f640b709723c14c837a48784b6
1 #! /bin/bash
3 # Make a list of revisions for commits to the branch of interest (trunk
4 # by default) between the specified dates. This skips commits that do
5 # not modify any existing files and changes by gccadmin.
7 # Copyright (C) 2007 Free Software Foundation.
9 # This file is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # For a copy of the GNU General Public License, write the the
20 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 # Boston, MA 02111-1301, USA.
23 #set -ex
25 abort() {
26 echo "$@"
27 exit 1
30 test $# -lt 2 && abort "usage: $0 low_date high_date [branch]"
32 export TZ=UTC
33 LOW_DATE="$1"
34 HIGH_DATE="$2"
36 if [ $# -eq 3 ]; then
37 BRANCH="$3"
38 else
39 BRANCH=""
42 # Verify branch name, convert a short name to the real one.
44 case $BRANCH in
45 "") BRANCH="trunk";;
46 mline) BRANCH="trunk";;
47 mainline) BRANCH="trunk";;
48 4.1) BRANCH="gcc-4_1-branch";;
49 gcc-4_1-branch) ;;
50 4.0) BRANCH="gcc-4_0-branch";;
51 gcc-4_0-branch) ;;
52 3.4) BRANCH="gcc-3_4-branch";;
53 gcc-3_4-branch) ;;
54 *) ;; # abort "$0: unrecognized branch $BRANCH"
55 esac
57 if [ "${BRANCH}" = "trunk" ]; then
58 BRANCHPATH=trunk
59 else
60 BRANCHPATH=branches/${BRANCH}
63 # Get the revision at the time of LOW_DATE.
65 LOW_REV=`svn info --revision {"${LOW_DATE}"} \
66 ${REG_SVN_REPO}/${BRANCHPATH} \
67 | awk '/Revision:/ { print $2 }'`
69 # Create the list of information for LOW_REV through HIGH_DATE in a
70 # form expected by gcc-svn-ids.
72 svn log --quiet --non-interactive \
73 --revision ${LOW_REV}:{"${HIGH_DATE}"} \
74 ${REG_SVN_REPO}/${BRANCHPATH} \
75 | awk -v branch=$BRANCH \
76 'BEGIN { id=0 }
77 /---/ { next }
78 /(no author)/ { next }
79 /gccadmin/ { next }
80 { sub(" \\+0000 (.*)","")
81 sub("r","",$1)
82 gsub(" \\| ","|")
83 id++
84 print id "|" $0 "|" branch