#!/bin/sh -
# XRACER (C) 1999-2000 Richard W.M. Jones <rich@annexia.org> and other AUTHORS
#
# This program 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
# of the License, or (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
# $Id: Reconf,v 1.3 2000/03/19 14:19:42 rich Exp $

# This is a highly specialized build script for my machine. You will
# probably need to change this substantially to be appropriate for
# your environment.
#
# Please note also that you normally only ever run this script if you
# have changed something about the build process itself -- for example
# if you have changed ``configure.in'' or one of the ``Makefile.am''
# files. If you just want to do a normal rebuild after changing a
# source file, all you need to do is:
#
# make && make install
#
#   - RWMJ 1999/12/27.

set -e
set -v

: Rebuilding autoconf/automake files
aclocal
autoheader
automake
autoconf

: Creating a fresh installation directory
rm -rf /tmp/xracer-build
mkdir -p /tmp/xracer-build

: Configuring XRacer
LINGUAS="fr" \
./configure --with-gl-libs=/usr/local/lib \
	    --with-gl-inc=/usr/local/include \
	    --prefix=/tmp/xracer-build

: Building XRacer
make

: Installing XRacer in /tmp/xracer-build
make install

: Now run it with: /tmp/xracer-build/bin/xracer -v
