SCM Repository
[smlnj] Annotation of /sml/trunk/config/install.bat
Annotation of /sml/trunk/config/install.bat
Parent Directory
|
Revision Log
Revision 1398 -
(view)
(download)
(as text)
1 : |
mblume |
1354 |
REM Win32 installer for SML/NJ.
|
2 : |
|
|
REM
|
3 : |
|
|
REM (C) 2003 The Fellowship of SML/NJ.
|
4 : |
|
|
REM
|
5 : |
|
|
REM Author: Matthias Blume (blume@tti-c.org)
|
6 : |
|
|
|
7 : |
mblume |
1342 |
REM begin by creating rudimentary directory hierarchy
|
8 : |
|
|
mkdir bin
|
9 : |
|
|
mkdir bin\.run
|
10 : |
|
|
mkdir bin\.heap
|
11 : |
|
|
mkdir lib
|
12 : |
|
|
|
13 : |
|
|
REM compile runtime system and move executable to bin\.run
|
14 : |
|
|
cd src\runtime\objs
|
15 : |
|
|
nmake -f mk.x86-win32
|
16 : |
|
|
move run.x86-win32.exe ..\..\..\bin\.run
|
17 : |
|
|
cd ..\..\..
|
18 : |
|
|
|
19 : |
|
|
REM put helper .bat scripts into bin
|
20 : |
|
|
copy config\link-sml.bat bin
|
21 : |
|
|
copy config\ml-build.bat bin
|
22 : |
|
|
copy config\sml.bat bin
|
23 : |
|
|
copy config\ml-lex.bat bin
|
24 : |
|
|
copy config\ml-yacc.bat bin
|
25 : |
|
|
|
26 : |
|
|
REM create heap image and lib hierarchy ("boot")
|
27 : |
|
|
copy config\preloads preloads.standard
|
28 : |
|
|
cd sml.boot.x86-win32
|
29 : |
|
|
..\bin\.run\run.x86-win32 @SMLboot=BOOTLIST @SMLheap=sml @SMLalloc=1M @SMLverbose
|
30 : |
|
|
cd ..
|
31 : |
|
|
move sml.x86-win32 bin\.heap
|
32 : |
|
|
del preloads.standard
|
33 : |
|
|
cd sml.boot.x86-win32
|
34 : |
|
|
for /D %%a in (*.*) do echo %%a %%a >>..\lib\pathconfig
|
35 : |
|
|
for /D %%a in (*.*) do move %%a ..\lib
|
36 : |
|
|
cd ..
|
37 : |
|
|
|
38 : |
mblume |
1391 |
REM Do all the rest using the precompiled installer.
|
39 : |
mblume |
1392 |
%COMSPEC% /C "bin\sml -m $smlnj/installer.cm"
|