cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@fztig938.bank.dresdner.net>
Subject Re: [PATCH] Re: C2 - cannot compile
Date Thu, 12 Jul 2001 12:14:07 GMT
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 : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message