Skip to content

Commit

Permalink
MONDRIAN: updated workbench.sh to use script directory vs current dir…
Browse files Browse the repository at this point in the history
…ectory based on Julian's feedback

[git-p4: depot-paths = "//open/mondrian/": change = 11862]
  • Loading branch information
Will Gorman committed Oct 31, 2008
1 parent 2984e6e commit a648983
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions workbench/workbench.sh
Expand Up @@ -3,9 +3,13 @@
# Launch Mondrian Schema Workbench on Linux, UNIX or Cygwin

# Platform specific path-separator.
MONDRIAN_HOME=$(cd $(dirname $0)/..; pwd)

# first look in directory of the script for lib, then
# look up one folder if lib does not exist

MONDRIAN_HOME=$(cd $(dirname $0); pwd)
if test ! -d $MONDRIAN_HOME/lib; then
MONDRIAN_HOME=$(pwd)
MONDRIAN_HOME=$(cd $(dirname $0)/..; pwd)
fi
case $(uname) in
Windows_NT|CYGWIN*)
Expand Down

0 comments on commit a648983

Please sign in to comment.