#! /bin/sh ######################################################################## # # File: gcc_build # Author: Mark Mitchell # Date: 07/10/2000 # # Contents: # Script to automatically download and build GCC. # # Copyright (c) 2000, 2001 Free Software Foundation. # # This file is part of GNU CC. # # GNU CC 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 2, or (at your option) # any later version. # # GNU CC 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 GNU CC; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # ######################################################################## ######################################################################## # Notes ######################################################################## # If you are using password-based CVS, you must manually log in, and # not log out from, the CVS server before running this script. # 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 <