Is this the bin/ant file from the ant distribution? If it is - when was it fixed in there?
The ant -version from cvs reports as 1.4 compiled on September 3 2001, I'm using 1.4.1 from October 11. Would it be worth upgrading cvs? J. > -----Original Message----- > From: Marcus Crafter [mailto:[EMAIL PROTECTED]] > Sent: Monday, 10 December 2001 5:11 pm > To: Cocoon Developers Mailing List > Subject: [patch] bin/ant & solaris > > > Hi All, > > Hope all is well. > > Unfortunately the bin/ant script fails on Solaris due > to some bash > specifics when testing for Darwin: > > if [ $( expr $OSTYPE : '[dD]arwin.*' ) -gt 0 ]; then > $JAVACMD -classpath "$LOCALCLASSPATH" > -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@" > else > $JAVACMD -classpath "$LOCALCLASSPATH" > -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@" > fi > > causes: > > ffzj0ia9[/export/home/crafterm/workarea/xml-cocoon2]:37>./build.sh > > Apache Cocoon 2 Build System > ---------------------------- > /export/home/crafterm/workarea/xml-cocoon2/bin/ant: syntax > error at line 107: `(' unexpected > ffzj0ia9[/export/home/crafterm/workarea/xml-cocoon2]:38> > > Since the if and else branches actually perform the same thing > attached is a patch to remove the test altogether and make the > script /bin/sh compatible again. Hope it's ok. > > Cheers, > > Marcus > -- > ..... > ,,$$$$$$$$$, Marcus Crafter > ;$' '$$$$: Computer Systems Engineer > $: $$$$: ManageSoft GmbH > $ o_)$$$: 82-84 Mainzer Landstrasse > ;$, _/\ &&:' 60327 Frankfurt Germany > ' /( &&& > \_&&&&' Email : [EMAIL PROTECTED] > &&&&. Business Hours : +49 69 9757 200 > &&&&&&&: > ======================================================================= Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]