[Nice-commit] Nice/bin nicec.bat,1.12,1.13
Brought to you by:
bonniot
From: <ar...@us...> - 2004-02-08 02:39:48
|
Update of /cvsroot/nice/Nice/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2159/F:/nice/bin Modified Files: nicec.bat Log Message: Use magnus fix to handle white spaces in directory name correctly. Index: nicec.bat =================================================================== RCS file: /cvsroot/nice/Nice/bin/nicec.bat,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** nicec.bat 8 Feb 2004 00:00:28 -0000 1.12 --- nicec.bat 8 Feb 2004 02:36:50 -0000 1.13 *************** *** 1,47 **** ! @echo off ! rem --------------------------------------------------------------------------- ! rem nicec.bat - a nice compiler batch file ! rem ! rem Environment Variariable Prerequisites: ! rem ! rem NICE - the root directory where nice is installed ! rem --------------------------------------------------------------------------- ! ! rem -- do we have a nice environment variable? ! if not "%NICE%" == "" goto gotNice ! ! rem -- try some standard places ! ! set NICE=c:\nice ! if exist %NICE%\nice.jar goto gotNice ! ! set NICE="c:\Program Files\nice" ! if exist %NICE%\nice.jar goto gotNice ! ! set NICE=c:\programs\nice ! if exist %NICE%\nice.jar goto gotNice ! ! set NICE=d:\nice ! if exist %NICE%\nice.jar goto gotNice ! ! set NICE="d:\Program Files\nice" ! if exist %NICE%\nice.jar goto gotNice ! ! set NICE=d:\programs\nice ! if exist %NICE%\nice.jar goto gotNice ! ! ! echo You must set the NICE environment variable to point to the directory you've installed nice in e.g. ! echo set NICE=C:\programs\nice ! echo (note: do not add a ';' at the end) ! echo You can do it by modifying Autoexec.bat or in the system settings. ! goto end ! ! :gotNice ! java -classpath %NICE%\nice.jar;%CLASSPATH% nice.tools.compiler.console.fun --runtime=%NICE%\nice.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 ! ! :end ! ! rem Local variables: ! rem coding:dos ! rem End: --- 1,55 ---- ! @echo off ! rem --------------------------------------------------------------------------- ! rem nicec.bat - a nice compiler batch file ! rem ! rem Environment Variariable Prerequisites: ! rem ! rem NICE - the root directory where nice is installed ! rem --------------------------------------------------------------------------- ! ! ! rem -- do we have a nice environment variable? ! for %%x in (%NICE%) do goto gotNiceEnvVar ! ! rem -- try some standard places ! ! set NICEPATH=c:\nice ! if exist %NICEPATH%\nice.jar goto gotNice ! ! set NICEPATH="c:\Program Files\nice" ! if exist %NICEPATH%\nice.jar goto gotNice ! ! set NICEPATH=c:\programs\nice ! if exist %NICEPATH%\nice.jar goto gotNice ! ! set NICEPATH=d:\nice ! if exist %NICEPATH%\nice.jar goto gotNice ! ! set NICEPATH="d:\Program Files\nice" ! if exist %NICEPATH%\nice.jar goto gotNice ! ! set NICEPATH=d:\programs\nice ! if exist %NICEPATH%\nice.jar goto gotNice ! ! goto error ! ! :envError ! echo Could not find the file: %NICE%\nice.jar ! echo The NICE environment variable is not pointing to the right directory! ! ! :error ! echo You must set the NICE environment variable to point to the directory you've installed nice in e.g. ! echo set NICE=C:\programs\nice echo (note: do not add a ';' at the end) ! echo You can do it by modifying Autoexec.bat or in the system settings. ! goto end ! ! :gotNiceEnvVar ! if not exist %NICE%\nice.jar goto envError ! set NICEPATH=%NICE% ! ! :gotNice ! java -classpath %NICEPATH%\nice.jar;%CLASSPATH% nice.tools.compiler.console.fun --runtime=%NICEPATH%\nice.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 ! ! :end ! rem -- clean up a bit ! set NICEPATH= \ No newline at end of file |