1 diff --git a/install b/install
2 index 95afa2c..70c5fca 100755
9 echo "BonnMotion - a mobility scenario generation and analysis tool"
10 echo "Copyright (C) 2002-2012 University of Bonn"
11 @@ -19,28 +19,11 @@ echo "along with this program; if not, write to the Free Software"
12 echo "Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"
15 -OS=`uname -s | tr A-Z a-z | sed -e s/_.\*//`
17 PACKAGE=edu.bonn.cs.iv.bonnmotion
18 -JAVAPATH=`which java 2> /dev/null`
19 -if [ ! "$JAVAPATH" = "" ]
21 - JAVAPATH=`dirname ${JAVAPATH}`
23 -echo -n Please enter your Java binary path \[$JAVAPATH\]:\
25 -if [ ! "$KBDENTRY" = "" ]
30 if [ -x "${JAVAPATH}/java" ]
38 + BONNMOTION="$(realpath .)"
40 CLASSPATH="${BONNMOTION}/classes"
41 DOCPATH="${BONNMOTION}/javadoc"
42 @@ -52,14 +35,7 @@ then
46 - if [ $OS = "cygwin" ]
49 - CLASSPATH=`cmd.exe /c cd`
51 - DOCPATH=`cmd.exe /c cd`
55 for l in $BONNMOTION/lib/*.jar
57 LIBRARYPATH=$LIBRARYPATH:$l
58 @@ -69,7 +45,7 @@ then
60 cd "${BONNMOTION}/bin"
62 - echo \#\!/bin/bash > .head
63 + echo \#\!@bash@/bin/bash > .head
65 echo BONNMOTION=\"$BONNMOTION\" >> .head
66 echo PACKAGE=\"$PACKAGE\" >> .head
67 @@ -103,8 +79,6 @@ then
71 - echo "$ ./bin/bm -h"
74 echo No executable \"$JAVAPATH/java\", aborting.