Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /config/releases/release-110.72/ml-build.bat
ViewVC logotype

Diff of /config/releases/release-110.72/ml-build.bat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2140, Thu Nov 2 16:20:25 2006 UTC revision 2503, Fri May 4 19:58:35 2007 UTC
# Line 1  Line 1 
1  @echo off  @echo off
2  set root=%1%  
3  set main=%2%  set flags=""
4  set heap=%3%  set setup=""
5    
6    :DOFLAGS
7    
8    if %1 == -D goto FOUNDFLAG
9    if %1 == -U goto FOUNDFLAG
10    if %1 == -C goto FOUNDFLAG
11    if %1 == -S goto FOUNDSETUP
12    goto DONEFLAGS
13    
14    :FOUNDFLAG
15    
16    set flags="%flags% %1=%2"
17    shift
18    shift
19    goto DOFLAGS
20    
21    :FOUNDSETUP
22    
23    set setup=%2
24    shift
25    shift
26    goto DOFLAGS
27    
28    :DONEFLAGS
29    
30    set root=%1
31    set main=%2
32    set heap=%3
33    
34  set smlfile=XYZ_XXX_smlfile.sml  set smlfile=XYZ_XXX_smlfile.sml
35  set cmfile=XYZ_XXX_cmfile.cm  set cmfile=XYZ_XXX_cmfile.cm
# Line 14  Line 42 
42    
43  echo Group structure %rare% is $/basis.cm "%root%" %smlfile% >%cmfile%  echo Group structure %rare% is $/basis.cm "%root%" %smlfile% >%cmfile%
44    
45  %COMSPEC% /C "%SMLNJ_HOME%\bin\sml.bat @CMbuild %root% %cmfile% %heap% %listfile% %linkargsfile%"  %COMSPEC% /C "%SMLNJ_HOME%\bin\sml.bat %flags% %setup% @CMbuild %root% %cmfile% %heap% %listfile% %linkargsfile%"
46  IF ERRORLEVEL 1 GOTO ERR  if ERRORLEVEL 1 goto ERR
47  IF NOT EXIST %linkargsfile% GOTO END  if NOT EXIST %linkargsfile% goto END
48  "%SMLNJ_HOME%\bin\.run\run.x86-win32.exe" @SMLboot=%listfile%  "%SMLNJ_HOME%\bin\.run\run.x86-win32.exe" @SMLboot=%listfile%
49  del %linkargsfile%  del %linkargsfile%
50  GOTO END  goto END
51    
52  :ERR  :ERR
53  echo Compilation failed with error.  echo Compilation failed with error.
54    
55  :END  :END
56  REM more cleaning up  rem more cleaning up
57  del %smlfile%  del %smlfile%
58  del %cmfile%  del %cmfile%
59  del %listfile%  del %listfile%

Legend:
Removed from v.2140  
changed lines
  Added in v.2503

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0