[Nice-commit] Nice/bin nicec,1.36,1.37
Brought to you by:
bonniot
From: <bo...@us...> - 2004-02-16 12:49:49
|
Update of /cvsroot/nice/Nice/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26423/bin Modified Files: nicec Log Message: Handle nicedoc and niceunit. Index: nicec =================================================================== RCS file: /cvsroot/nice/Nice/bin/nicec,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** nicec 12 Jun 2003 21:29:55 -0000 1.36 --- nicec 16 Feb 2004 12:41:45 -0000 1.37 *************** *** 37,40 **** --- 37,41 ---- java=${JAVA-java} scriptName="$0" + progname=`basename $scriptName` experimental=false *************** *** 69,81 **** export CLASSPATH ! system_args="--runtime=${NICEC_JAR}" ! gcj="`which gcj 2>/dev/null`" ! # Check the string found is really a file ! # This is a work-around for a bug in OS X: ! # which gcj returns 0 (success) and prints "no gcj in $PATH" ! if [ -f "$gcj" ]; then ! system_args="${system_args} --native-compiler=${gcj}" ! fi ! exec ${java} nice.tools.compiler.console.fun ${system_args} "$@" --- 70,89 ---- export CLASSPATH ! case $progname in ! nicedoc) class=nice.tools.doc.fun ;; ! niceunit) class=nice.tools.unit.console.fun ;; ! nicec) class=nice.tools.compiler.console.fun ! system_args="--runtime=${NICEC_JAR}" ! gcj="`which gcj 2>/dev/null`" ! # Check the string found is really a file ! # This is a work-around for a bug in OS X: ! # `which gcj` returns 0 (success) and prints "no gcj in $PATH" ! if [ -f "$gcj" ]; then ! system_args="${system_args} --native-compiler=${gcj}" ! fi ! ! esac ! ! exec ${java} $class ${system_args} "$@" |