#! /bin/sh ######################################################################## # # File: gcc_build # Author: Mark Mitchell # Date: 2000-07-10 # # Adapted to Subversion by Ben Elliston , 2005-07-14. # # Contents: # Script to automatically download and build GCC. # # Copyright (c) 2000, 2001, 2003, 2005 Free Software Foundation. # # This file is part of GCC. # # GCC is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # GCC is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING. If not, write to # the Free Software Foundation, 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA. # ######################################################################## ######################################################################## # Notes ######################################################################## # You can set the following variables in the environment. They # have no corresponding command-line options because they should # only be needed infrequently: # # MAKE The path to `make'. ######################################################################## # Functions ######################################################################## # Issue the error message given by $1 and exit with a non-zero # exit code. error() { echo "gcc_build: error: $1" exit 1 } # Issue a usage message explaining how to use this script. usage() { cat <