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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [fixincludes/] [genfixes] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
#! /bin/sh
#! /bin/sh
# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
# This file is part of GCC.
# This file is part of GCC.
# GCC is free software; you can redistribute it and/or modify
# GCC 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 2, or (at your option)
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# any later version.
# GCC is distributed in the hope that it will be useful,
# GCC 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.
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING.  If not, write to
# along with GCC; see the file COPYING.  If not, write to
# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
# Boston, MA 02110-1301, USA.
SHELL=/bin/sh
SHELL=/bin/sh
export SHELL
export SHELL
if [ $# -eq 0 ] ; then
if [ $# -eq 0 ] ; then
  not_done=false
  not_done=false
else
else
  not_done=true
  not_done=true
fi
fi
while $not_done
while $not_done
do
do
  case "$1" in
  case "$1" in
  -D )
  -D )
    shift
    shift
    if [ $# -eq 0 ] ; then
    if [ $# -eq 0 ] ; then
      not_done=false
      not_done=false
    else
    else
      AG="$AG -D$1"
      AG="$AG -D$1"
      shift
      shift
    fi
    fi
    ;;
    ;;
  -D* )
  -D* )
    AG="$AG $1"
    AG="$AG $1"
    shift
    shift
    ;;
    ;;
  '-?' )
  '-?' )
    echo "USAGE: gendefs [ -D ... ]"
    echo "USAGE: gendefs [ -D ... ]"
    echo "WHERE: '' specifies a #define test name from inclhack.def"
    echo "WHERE: '' specifies a #define test name from inclhack.def"
    exit 0
    exit 0
    ;;
    ;;
  * )
  * )
    not_done=false
    not_done=false
    ;;
    ;;
  esac
  esac
done
done
if [ $# -eq 0 ] ; then
if [ $# -eq 0 ] ; then
  set -- fixincl.x
  set -- fixincl.x
fi
fi
AG="autogen $AG"
AG="autogen $AG"
set -e
set -e
if [ -z "`${AG} -v | fgrep 'Ver. 5.'`" ]
if [ -z "`${AG} -v | fgrep 'Ver. 5.'`" ]
then
then
  echo "AutoGen appears to be out of date or not correctly installed."
  echo "AutoGen appears to be out of date or not correctly installed."
  echo "Please download and install:"
  echo "Please download and install:"
  echo "   ftp://gcc.gnu.org/pub/gcc/infrastructure/autogen.tar.gz"
  echo "   ftp://gcc.gnu.org/pub/gcc/infrastructure/autogen.tar.gz"
  touch fixincl.x
  touch fixincl.x
else
else
  echo AutoGen-ing fixincl.x
  echo AutoGen-ing fixincl.x
  $AG inclhack.def
  $AG inclhack.def
fi
fi
exit 0
exit 0
 
 

powered by: WebSVN 2.1.0

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