2010-04-08 17:50:24 +04:00
|
|
|
#!/bin/sh
|
|
|
|
# This file is part of NetSurf, http://netsurf-browser.org/
|
|
|
|
# Licensed under the GNU General Public License,
|
|
|
|
# http://www.opensource.org/licenses/gpl-license
|
|
|
|
# Copyright 2007 Rob Kendrick <rjek@netsurf-browser.org>
|
|
|
|
#
|
|
|
|
# This launcher script is meant only for running nsgtk from inside the
|
|
|
|
# build tree, with some debugging enabled. It is not meant for day-to-day
|
|
|
|
# or packaged use!
|
|
|
|
|
|
|
|
if [ -d ~/.netsurf ]; then
|
|
|
|
LOG=~/.netsurf/log.txt
|
|
|
|
elif [ -d /tmp ]; then
|
|
|
|
LOG=/tmp/netsurf-log.txt
|
|
|
|
else
|
|
|
|
LOG=netsurf-log.txt
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $0: using $LOG as logfile
|
|
|
|
|
|
|
|
ulimit -c unlimited
|
|
|
|
|
|
|
|
NETSURFRES=`dirname $0`/gtk/res/
|
|
|
|
export NETSURFRES
|
2011-03-02 15:10:06 +03:00
|
|
|
|
|
|
|
if [ "x$1" = "x--gdb" ]; then
|
|
|
|
GDB="gdb --args -x"
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "**********************************************************"
|
|
|
|
echo "Remember to type 'run' and press ENTER once gdb has loaded"
|
|
|
|
echo "**********************************************************"
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
shift
|
|
|
|
fi
|
|
|
|
|
2010-12-20 13:31:23 +03:00
|
|
|
exec $GDB `dirname $0`/nsgtk -v "$@" 2>&1 | tee $LOG
|