[gforth] / gforth / gforthmi.bat  

gforth: gforth/gforthmi.bat


1 : pazsan 1.2 REM @ECHO OFF
2 : pazsan 1.3 REM Copyright (C) 1997-1998 Free Software Foundation, Inc.
3 : anton 1.1
4 :     REM This file is part of Gforth.
5 :    
6 :     REM Gforth is free software; you can redistribute it and/or
7 :     REM modify it under the terms of the GNU General Public License
8 :     REM as published by the Free Software Foundation; either version 2
9 :     REM of the License, or (at your option) any later version.
10 :    
11 :     REM This program is distributed in the hope that it will be useful,
12 :     REM but WITHOUT ANY WARRANTY; without even the implied warranty of
13 :     REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.REM See the
14 :     REM GNU General Public License for more details.
15 :    
16 :     REM You should have received a copy of the GNU General Public License
17 :     REM along with this program; if not, write to the Free Software
18 :     REM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 :    
20 : pazsan 1.4 if not x%1==x goto makeit
21 :     if not x%1==x--help" goto makeit
22 :     if not x%1==x-h" goto makeit
23 : anton 1.1 echo usage: gforth-makeimage target-name [gforth-options]
24 : pazsan 1.3 echo environment: GFORTHD: the Gforth binary used (default: gforth-d)
25 : anton 1.1 echo creates a relocatable image 'target-name'
26 :     goto end
27 :     :makeit
28 :     set outfile=%1
29 :     shift
30 : pazsan 1.4 set GFORTHPAR=
31 :     :accupars
32 :     if x%1==x goto accudone
33 :     set GFORTHPAR=%GFORTHPAR% %1
34 :     shift
35 :     goto accupars
36 :     :accudone
37 :     if not x%GFORTHD%==x goto doit
38 : anton 1.1 set GFORTHD=gforth-d
39 :     :doit
40 : pazsan 1.2 echo savesystem tmp.fi1 bye >tmp.fs
41 : pazsan 1.4 %GFORTHD% -c -n %GFORTHPAR% tmp.fs
42 : pazsan 1.2 echo savesystem tmp.fi2 bye >tmp.fs
43 : pazsan 1.4 %GFORTHD% -c -o %GFORTHPAR% tmp.fs
44 : pazsan 1.2 echo comp-image tmp.fi1 tmp.fi2 %outfile% bye >tmp.fs
45 :     %GFORTHD% -i kernl32l.fi startup.fs comp-i.fs tmp.fs
46 :     del tmp.fs
47 : anton 1.1 del tmp.fi1
48 :     del tmp.fi2
49 :     :end
50 : pazsan 1.3 

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help