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 [patch] bin/ant & solaris
Date Mon, 10 Dec 2001 17:11:05 GMT
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 : Marcus.Crafter@managesoft.com
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:

Mime
View raw message