cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Roebuck <stuart.roeb...@adolos.co.uk>
Subject Re: [PATCH] Re: C2 - cannot compile
Date Thu, 12 Jul 2001 14:29:23 GMT
Marcus,

That's surprising, I always thought the use of '^' was fairly standard in 
regular expressions.

Okay, just take off the '^' I don't think there'll be many other "*Darwin"
  OSs out there in the next few years!

Stuart.

On Thursday, July 12, 2001, at 01:14  pm, Marcus Crafter wrote:

> 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
>


-------------------------------------------------------------------------
Stuart Roebuck                                  stuart.roebuck@adolos.com
Lead Developer                               Java, XML, MacOS X, XP, etc.
ADOLOS                                           <http://www.adolos.com/>

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


Mime
View raw message