2001-05-13 07:26:57 +05:30
|
|
|
#! /bin/sh
|
|
|
|
# @configure_input@
|
2002-07-27 19:24:56 +05:30
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
|
|
|
# Copyright (C) 2000 Donald N. Allingham
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
2001-05-13 07:26:57 +05:30
|
|
|
|
|
|
|
prefix=@prefix@
|
|
|
|
|
2001-06-22 01:01:12 +05:30
|
|
|
export GRAMPSDIR=@datadir@/@PACKAGE@
|
|
|
|
export PYTHONPATH=$GRAMPSDIR
|
|
|
|
export GRAMPSI18N=@prefix@/share/locale
|
|
|
|
|
2002-07-27 19:24:56 +05:30
|
|
|
preload=""
|
|
|
|
|
|
|
|
#
|
|
|
|
# Mandrake has a tendency to build dynamic libraries without the proper
|
|
|
|
# dependencies in them. This causes havoc with the python gtk libraries.
|
|
|
|
# Preload the know problem libraries so that gramps does not fail under
|
|
|
|
# Mandrake
|
|
|
|
#
|
|
|
|
for l in /usr/X11R6/lib/libX11.so /usr/lib/libgdk-1.2.so.0 /usr/lib/libgdk_imlib.so.1
|
|
|
|
do
|
|
|
|
if [ -f $l ]; then
|
|
|
|
preload="$preload $l"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "$preload" != "" ]; then
|
|
|
|
export LD_PRELOAD="$preload"
|
2001-12-19 07:32:59 +05:30
|
|
|
fi
|
|
|
|
|
2001-06-22 01:01:12 +05:30
|
|
|
@PYTHON@ $GRAMPSDIR/gramps.py $*
|