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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [contrib/] [reghunt/] [bin/] [gcc-svn-patchlist] - Diff between revs 265 and 519

Only display areas with differences | Details | Blame | View Log

Rev 265 Rev 519
#! /bin/bash
#! /bin/bash
# Make a list of revisions for commits to the branch of interest (trunk
# Make a list of revisions for commits to the branch of interest (trunk
# by default) between the specified dates.  This skips commits that do
# by default) between the specified dates.  This skips commits that do
# not modify any existing files and changes by gccadmin.
# not modify any existing files and changes by gccadmin.
#
#
# Copyright (C) 2007 Free Software Foundation.
# Copyright (C) 2007 Free Software Foundation.
#
#
# This file is free software; you can redistribute it and/or modify
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# GNU General Public License for more details.
#
#
# For a copy of the GNU General Public License, write the the
# For a copy of the GNU General Public License, write the the
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02111-1301, USA.
# Boston, MA 02111-1301, USA.
#set -ex
#set -ex
abort() {
abort() {
    echo "$@"
    echo "$@"
    exit 1
    exit 1
}
}
test $# -lt 2 && abort "usage: $0 low_date high_date [branch]"
test $# -lt 2 && abort "usage: $0 low_date high_date [branch]"
export TZ=UTC
export TZ=UTC
LOW_DATE="$1"
LOW_DATE="$1"
HIGH_DATE="$2"
HIGH_DATE="$2"
if [ $# -eq 3 ]; then
if [ $# -eq 3 ]; then
    BRANCH="$3"
    BRANCH="$3"
else
else
    BRANCH=""
    BRANCH=""
fi
fi
# Verify branch name, convert a short name to the real one.
# Verify branch name, convert a short name to the real one.
case $BRANCH in
case $BRANCH in
"")             BRANCH="trunk";;
"")             BRANCH="trunk";;
mline)          BRANCH="trunk";;
mline)          BRANCH="trunk";;
mainline)       BRANCH="trunk";;
mainline)       BRANCH="trunk";;
4.1)            BRANCH="gcc-4_1-branch";;
4.1)            BRANCH="gcc-4_1-branch";;
gcc-4_1-branch) ;;
gcc-4_1-branch) ;;
4.0)            BRANCH="gcc-4_0-branch";;
4.0)            BRANCH="gcc-4_0-branch";;
gcc-4_0-branch) ;;
gcc-4_0-branch) ;;
3.4)            BRANCH="gcc-3_4-branch";;
3.4)            BRANCH="gcc-3_4-branch";;
gcc-3_4-branch) ;;
gcc-3_4-branch) ;;
*)              ;; # abort "$0: unrecognized branch $BRANCH"
*)              ;; # abort "$0: unrecognized branch $BRANCH"
esac
esac
if [ "${BRANCH}" = "trunk" ]; then
if [ "${BRANCH}" = "trunk" ]; then
  BRANCHPATH=trunk
  BRANCHPATH=trunk
else
else
  BRANCHPATH=branches/${BRANCH}
  BRANCHPATH=branches/${BRANCH}
fi
fi
# Get the revision at the time of LOW_DATE.
# Get the revision at the time of LOW_DATE.
LOW_REV=`svn info --revision {"${LOW_DATE}"} \
LOW_REV=`svn info --revision {"${LOW_DATE}"} \
        ${REG_SVN_REPO}/${BRANCHPATH} \
        ${REG_SVN_REPO}/${BRANCHPATH} \
  | awk '/Revision:/ { print $2 }'`
  | awk '/Revision:/ { print $2 }'`
# Create the list of information for LOW_REV through HIGH_DATE in a
# Create the list of information for LOW_REV through HIGH_DATE in a
# form expected by gcc-svn-ids.
# form expected by gcc-svn-ids.
svn log --quiet --non-interactive \
svn log --quiet --non-interactive \
        --revision ${LOW_REV}:{"${HIGH_DATE}"} \
        --revision ${LOW_REV}:{"${HIGH_DATE}"} \
        ${REG_SVN_REPO}/${BRANCHPATH} \
        ${REG_SVN_REPO}/${BRANCHPATH} \
  | awk -v branch=$BRANCH \
  | awk -v branch=$BRANCH \
      'BEGIN { id=0 }
      'BEGIN { id=0 }
       /---/ { next }
       /---/ { next }
       /(no author)/ { next }
       /(no author)/ { next }
       /gccadmin/ { next }
       /gccadmin/ { next }
             { sub(" \\+0000 (.*)","")
             { sub(" \\+0000 (.*)","")
               sub("r","",$1)
               sub("r","",$1)
               gsub(" \\| ","|")
               gsub(" \\| ","|")
               id++
               id++
               print id "|" $0 "|" branch
               print id "|" $0 "|" branch
             }'
             }'
 
 

powered by: WebSVN 2.1.0

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