mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-01 02:26:58 +03:00
7b838593f2
svn path=/trunk/netsurf/; revision=6587
26 lines
640 B
Bash
Executable File
26 lines
640 B
Bash
Executable File
#!/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>
|
|
|
|
if [ -d ~/.netsurf ]; then
|
|
LOG=~/.netsurf/log.txt
|
|
elif [ -d /tmp ]; then
|
|
LOG=/tmp/netsurf-log.txt
|
|
else
|
|
LOG=netsurf-log.txt
|
|
fi
|
|
|
|
if [ -x $(dirname $0)/nsfb-sdl ]; then
|
|
TYPE=-sdl
|
|
elif [ -x $(dirname $0)/nsfb-linux ]; then
|
|
TYPE=-linux
|
|
elif [ -x $(dirname $0)/nsfb-dummy ]; then
|
|
TYPE=-dummy
|
|
fi
|
|
|
|
NETSURFRES=$(dirname $0)/framebuffer/res/
|
|
export NETSURFRES
|
|
exec $(dirname $0)/nsfb${TYPE} "$@" 2>$LOG
|