[daisy] fixing merlin startup script on solaris
Bruno Dumon
bruno at outerthought.org
Thu Apr 5 11:01:47 CDT 2007
Hi Jorg,
Good to remind us this problem still exists. I've created an issue at:
http://issues.cocoondev.org/browse/DSY-443
It would help a bit if you could add the complete working script (not
patch) to that issue.
On Wed, 2007-04-04 at 11:28 +0200, Jorg Heymans wrote:
> Hi,
>
> As mentioned here [1] and [2] , the startup script for merlin does not
> work on solaris by default (you get a 'can't find jarfile' error)
>
> Bruno said back then that the fix should be applied to the merlin
> project rather than here. Now that merlin seems to have become metro i
> don't know if this is still relevant.
>
> Anyway, [3] is what i had to do to get it to work, in case this is
> useful for others.
>
> In any case, bash supports both syntaxes so perhaps the more
> conservative construct could be made default.
>
> -bash-3.00$ SOME=THING;export SOME; echo $SOME
> THING
> -bash-3.00$ export SOME=ANOTHERTHING; echo $SOME
> ANOTHERTHING
> -bash-3.00$ sh
> $ export SOME=OOPS; echo $SOME
> SOME=OOPS: is not an identifier
> $ SOME=AAAH; export SOME; echo $SOME
> AAAH
>
>
> Regards,
> Jorg
>
> [1]
> http://lists.cocoondev.org/pipermail/daisy/2005-February/000821.html
> [2]
> http://lists.cocoondev.org/pipermail/daisy/2006-January/003025.html
>
> [3]
>
> -bash-3.00$ diff -u merlin.orig merlin
> --- merlin.orig Wed Apr 4 10:15:22 2007
> +++ merlin Wed Apr 4 10:18:39 2007
> @@ -2,7 +2,8 @@
> #
>
>
> -export MERLIN_VERSION="3.3.0"
> +MERLIN_VERSION="3.3.0"
> +export MERLIN_VERSION
>
> # Checking for JAVA_HOME is required on *nix due
> # to some distributions stupidly including kaffe in /usr/bin
> @@ -14,7 +15,8 @@
> exit 1
> fi
>
> -export PLATFORM=`uname`
> +PLATFORM=`uname`
> +export PLATFORM
>
> #
> # Compute the MERLIN_HOME if not already set.
> @@ -25,10 +27,13 @@
> cd "$BIN_DIR"
> ABSOLUTE_PATH=`pwd`
> cd "$CWD"
> - export MERLIN_HOME="`dirname "$ABSOLUTE_PATH"`"
> + MERLIN_HOME="`dirname "$ABSOLUTE_PATH"`"
> + export MERLIN_HOME
> fi
> -export
> MERLIN_BOOTSTRAP_JAR="$MERLIN_HOME/system/merlin/jars/merlin-cli-$MERLIN_VERSION.jar"
>
> +MERLIN_BOOTSTRAP_JAR="$MERLIN_HOME/system/merlin/jars/merlin-cli-$MERLIN_VERSION.jar"
> +export MERLIN_BOOTSTRAP_JAR
> +
> if [ `echo $PLATFORM | grep "CYGWIN"` ] ; then
> exec "$MERLIN_HOME/bin/internal-cygwin.sh" "$@"
> elif [ `echo $PLATFORM | grep "Linux"` ] ; then
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list