#!/bin/bash
#***************************************************************************
#                         install.sh  -  shell-script de instalación
#                             -------------------
#    begin                : Mar Abr 09 2003
#    copyright            : (C) 2003-2008 by InfoSiAL, S.L.
#    email                : mail@infosial.com
#    modificado		  : Modificado para que este script sólo compile las Qt
#			   dpinelo
#***************************************************************************

#***************************************************************************
#*                                                                         *
#*   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.                                   *
#*                                                                         *
#***************************************************************************

# SE DEBE HABER EJECUTADO ANTES compilar-qt.sh
. ./setenv.sh

QT_DEBUG="-debug -DQT_NO_COMPAT"
OPT_DEBUG=yes
OPT_SQLLOG=yes
OPT_DEBUGGER=yes
QSADIR=qsa-debugger

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$QTDIR/lib

export PATH=$PREFIX/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PREFIX/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PREFIX/lib

echo "Compilando QSA..."
cd $ACTUAL/src/$QSADIR
cp -fv ../qt/.qmake.cache .qmake.cache
cp -fv ../qt/.qmake.cache src/$QSADIR/
cp -fv ../qt/.qmake.cache src/plugin/
./configure
make || exit 1
make install

cd $ACTUAL
