OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [contrib/] [reghunt/] [bin/] [gcc-svn-patchlist] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 723 jeremybenn
#! /bin/bash
2
 
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.
6
#
7
# Copyright (C) 2007 Free Software Foundation.
8
#
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.
13
#
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.
18
#
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.
22
 
23
#set -ex
24
 
25
abort() {
26
    echo "$@"
27
    exit 1
28
}
29
 
30
test $# -lt 2 && abort "usage: $0 low_date high_date [branch]"
31
 
32
export TZ=UTC
33
LOW_DATE="$1"
34
HIGH_DATE="$2"
35
 
36
if [ $# -eq 3 ]; then
37
    BRANCH="$3"
38
else
39
    BRANCH=""
40
fi
41
 
42
# Verify branch name, convert a short name to the real one.
43
 
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
56
 
57
if [ "${BRANCH}" = "trunk" ]; then
58
  BRANCHPATH=trunk
59
else
60
  BRANCHPATH=branches/${BRANCH}
61
fi
62
 
63
# Get the revision at the time of LOW_DATE.
64
 
65
LOW_REV=`svn info --revision {"${LOW_DATE}"} \
66
        ${REG_SVN_REPO}/${BRANCHPATH} \
67
  | awk '/Revision:/ { print $2 }'`
68
 
69
# Create the list of information for LOW_REV through HIGH_DATE in a
70
# form expected by gcc-svn-ids.
71
 
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
85
             }'

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.