From 3d714aa3667fe48e862bd4f258d4d1550ca27762 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Thu, 8 Apr 2010 13:50:24 +0000 Subject: Rename nsgtk test launcher, enabled creation of core files, tee log file. Should make it obvious this script is for testing only. svn path=/trunk/netsurf/; revision=10308 --- test-nsgtk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 test-nsgtk (limited to 'test-nsgtk') diff --git a/test-nsgtk b/test-nsgtk new file mode 100755 index 000000000..1846b1f3c --- /dev/null +++ b/test-nsgtk @@ -0,0 +1,25 @@ +#!/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 +# +# 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 +exec `dirname $0`/nsgtk -v "$@" 2>&1 | tee $LOG -- cgit v1.2.3