ardour/tools/linux_packaging/install.sh
Todd Naugle c6af72af12 switch back to xterm being the first choice of terminals to use. This solves an issues with avlinux
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@8807 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-02-09 16:24:20 +00:00

25 lines
677 B
Bash
Executable file

#!/bin/sh
# Make sure we have a terminal for the user to see and then run
# the real install script.
# Some systems don't correctly set the PWD when a script is double-clicked,
# so go ahead and figure out our path and make sure we are in that directory.
SAVED_PWD=$PWD
PKG_PATH=$(dirname $(readlink -f $0))
cd ${PKG_PATH}
if [ -z "$TERM" ] || [ "$TERM" = "dumb" ]; then
if which xterm > /dev/null; then
exec xterm -e ${PKG_PATH}/.stage2.run
elif which gnome-terminal > /dev/null; then
exec gnome-terminal -e ${PKG_PATH}/.stage2.run
elif which konsole > /dev/null; then
exec konsole -e ${PKG_PATH}/.stage2.run
fi
else
${PKG_PATH}/.stage2.run
fi
cd ${SAVED_PWD}