Hi Stuart,

> Can I suggest the following patch to bin/ant for Mac OS X at the moment 
> (replacing last line):
> 
> if [ $( expr $OSTYPE : '^[dD]arwin.*' ) > 0 ]; then
>       $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" 
> $ANT_OPTS org.apache.tools.ant.Main "$@"
> else
>       $JAVACMD -classic -classpath "$LOCALCLASSPATH" 
> -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
> fi
> 
> On Mac OS X 10.0.4 the value of OSTYPE in the /bin/sh shell appears to be 
> "darwin1.0", but it is "Darwin1.3" in Bash and "macos" in csh and tcsh!

        With this patch in place I'm receiving the following on my linux
        system:

fztig938[/home/crafterm/workarea/xml-cocoon2]:31>bash build.sh 

Apache Cocoon 2 Build System
----------------------------
expr: warning: unportable BRE: `^[dD]arwin.*': using `^' as the first
character of the basic regular expression is not portable; it is being ignored
Buildfile: build.xml

init:

        Is the ^ important/needed ? Should we remove it ?

        Cheers,

        Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : [EMAIL PROTECTED]
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to