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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1398 - (view) (download) (as text)
Original Path: sml/trunk/config/ml-build.bat

1 : mblume 1398 @echo off
2 : mblume 1342 set root=%1%
3 :     set main=%2%
4 :     set heap=%3%
5 :    
6 :     set smlfile=XYZ_XXX_smlfile.sml
7 :     set cmfile=XYZ_XXX_cmfile.cm
8 :     set listfile=XYZ_XXX_BOOTLIST
9 :     set linkargsfile=XYZ_XXX_LINKARGS
10 :    
11 :     set rare=XYZ_XXX_0123
12 :    
13 :     echo structure %rare% = struct val _ = SMLofNJ.exportFn ("%heap%", %main%) end >%smlfile%
14 :    
15 :     echo Group structure %rare% is $/basis.cm %root% %smlfile% >%cmfile%
16 :    
17 : mblume 1398 %COMSPEC% /C "%SMLNJ_HOME%\bin\sml.bat @CMbuild %root% %cmfile% %heap% %listfile% %linkargsfile%"
18 : mblume 1342 IF ERRORLEVEL 1 GOTO ERR
19 :     IF NOT EXIST %linkargsfile% GOTO END
20 : mblume 1398 %SMLNJ_HOME%\bin\.run\run.x86-win32.exe @SMLboot=%listfile%
21 : mblume 1342 del %linkargsfile%
22 :     GOTO END
23 :    
24 :     :ERR
25 :     echo Compilation failed with error.
26 :    
27 :     :END
28 :     REM more cleaning up
29 : mblume 1398 del %smlfile%
30 :     del %cmfile%
31 :     del %listfile%

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