#! /bin/sh # run.sh # Copyright (C) 2010-2011 Akira TAGOH # # Authors: # Akira TAGOH # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library 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 # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. if [ "x$HIEROGLYPH_LIB_PATH" != "x" ]; then export HIEROGLYPH_LIB_PATH=$HIEROGLYPH_LIB_PATH:`dirname $0`/../lib:`dirname $0`/../plugins/unittest:. else export HIEROGLYPH_LIB_PATH=`dirname $0`/../lib:`dirname $0`/../plugins/unittest:. fi for i in $(dirname $0)/../plugins/*; do if test -d $i && test -d $i/.libs; then export HIEROGLYPH_PLUGIN_PATH=$i/.libs:$HIEROGLYPH_PLUGIN_PATH fi done for i in $(dirname $0)/../devices/*; do if test -d $i && test -d $i/.libs; then export HIEROGLYPH_DEVICE_PATH=$i/.libs:$HIEROGLYPH_DEVICE_PATH fi done export LD_LIBRARY_PATH="`dirname $0`/../hieroglyph/.libs:$LD_LIBRARY_PATH" if [ "x$1" = "x-d" ]; then shift libtool --mode=execute gdb --args $@ else $@ fi