mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-20 12:26:07 +01:00
Make the installer work on more systems.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@8682 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b96bf1d085
commit
bc7dc158c4
1 changed files with 13 additions and 5 deletions
|
|
@ -3,14 +3,22 @@
|
|||
# Make sure we have a terminal for the user to see and then run
|
||||
# the real install script.
|
||||
|
||||
if [ -z $WINDOWID ]; then
|
||||
# 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.
|
||||
|
||||
PKG_PATH=$(dirname $(readlink -f $0))
|
||||
pushd ${PKG_PATH}
|
||||
|
||||
if [ -z "$TERM" ] || [ "$TERM" == "dumb" ]; then
|
||||
if which xterm > /dev/null; then
|
||||
exec xterm -e ./stage2.run
|
||||
exec xterm -e ${PKG_PATH}/stage2.run
|
||||
elif which gnome-terminal > /dev/null; then
|
||||
exec gnome-terminal -e ./stage2.run
|
||||
exec gnome-terminal -e ${PKG_PATH}/stage2.run
|
||||
elif which konsole > /dev/null; then
|
||||
exec konsole -e ./stage2.run
|
||||
exec konsole -e ${PKG_PATH}/stage2.run
|
||||
fi
|
||||
else
|
||||
./stage2.run
|
||||
${PKG_PATH}/stage2.run
|
||||
fi
|
||||
|
||||
popd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue