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 2140 - (view) (download) (as text)
Original Path: config/trunk/ml-build.bat

1 : blume 2088 @echo off
2 :     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 :     %COMSPEC% /C "%SMLNJ_HOME%\bin\sml.bat @CMbuild %root% %cmfile% %heap% %listfile% %linkargsfile%"
18 :     IF ERRORLEVEL 1 GOTO ERR
19 :     IF NOT EXIST %linkargsfile% GOTO END
20 :     "%SMLNJ_HOME%\bin\.run\run.x86-win32.exe" @SMLboot=%listfile%
21 :     del %linkargsfile%
22 :     GOTO END
23 :    
24 :     :ERR
25 :     echo Compilation failed with error.
26 :    
27 :     :END
28 :     REM more cleaning up
29 :     del %smlfile%
30 :     del %cmfile%
31 :     del %listfile%
32 :     del .cm\GUID\%smlfile%
33 :     del .cm\SKEL\%smlfile%
34 :     del .cm\x86-win32\%smlfile%

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