[Mondrian] Re: Eigenbase perforce change 11856 for review
jhyde at pentaho.com
Fri Oct 31 11:51:54 EDT 2008
Thanks for fixing this. But I fear that it is a poorly documented
Someone reading that wouldn't know what was going on. I know now -
having read a few email messages - that dist and dev have different
directory structures, but a maintainer would not, just from reading that
code. In fact it was my ignorance of that matter which caused this bug
in the first place.
As a best practice, a script should figure out its environment from $0
(the path of the script) and not from the caller's location. This script
does that for dev mode but not dist mode. For this to work in this
script, the script should first figure out whether it is in a dist or
dev environment. Maybe it can look for $(dirname $0)/lib?
On Thu, 2008-10-30 at 15:20 -0700, Will Gorman wrote:
> Change 11856 by wgorman at guest.willgorman.pentaho on 2008/10/30 15:18:41
> MONDRIAN: fixed workbench.sh in dist mode
> Affected files ...
> ... //open/mondrian/workbench/workbench.sh#7 edit
> Differences ...
> ==== //open/mondrian/workbench/workbench.sh#7 (kxtext) ====
> < # $Id: //open/mondrian/workbench/workbench.sh#6 $
> > # $Id: //open/mondrian/workbench/workbench.sh#7 $
> > if test ! -d $MONDRIAN_HOME/lib; then
> > MONDRIAN_HOME=$(pwd)
> > fi
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mondrian