#! /bin/bash
# src/tools/trackgen/trackgen.  Generated from trackgen.in by configure.

##############################################################################
#
#    file        : trackgen.in
#    created     : Tue Aug 19 23:23:51 CEST 2003
#    copyright   : (C) 2003 by Eric Espi                        
#    email       : Eric.Espie@torcs.org   
#    version     : $Id: trackgen.in,v 1.2 2004/01/18 16:04:47 torcs Exp $                                  
#
##############################################################################
#
#   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.
#
##############################################################################

prefix=/usr/local
exec_prefix=${prefix}

BINDIR=${exec_prefix}/bin
LIBDIR=${exec_prefix}/lib/torcs
DATADIR=${prefix}/share/games/torcs
VARDIR=${prefix}/var/games/torcs

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR/lib

echo "Changing to $DATADIR"
cd $DATADIR
$LIBDIR/trackgen-bin -L $LIBDIR $*

exit 0
