diff options
author | Todd Naugle <toddn@glw.com> | 2011-02-25 22:05:15 +0000 |
---|---|---|
committer | Todd Naugle <toddn@glw.com> | 2011-02-25 22:05:15 +0000 |
commit | e18cebd6d716d5a24960eb0c834db6a22cc2d67f (patch) | |
tree | 575f5d126f2f3ee168e8570bc89830d65398ebb6 /tools/linux_packaging/install.sh | |
parent | 5d86418fd2294f7b573eb8e41dca2bbb6ef37a3a (diff) |
merge in changes from 2.0 ongoing. Includes the build type in the package name and other fixes from 2.0
git-svn-id: svn://localhost/ardour2/branches/3.0@8962 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools/linux_packaging/install.sh')
-rwxr-xr-x | tools/linux_packaging/install.sh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/tools/linux_packaging/install.sh b/tools/linux_packaging/install.sh index 43e86b2fb2..33863ee646 100755 --- a/tools/linux_packaging/install.sh +++ b/tools/linux_packaging/install.sh @@ -3,14 +3,23 @@ # 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. + +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 ./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 + +cd ${SAVED_PWD} |