Annotation of gforth/gforthmi.bat, revision 1.9
1.2 pazsan 1: REM @ECHO OFF
1.8 anton 2: REM Copyright (C) 1997-1998,2000,2003 Free Software Foundation, Inc.
1.1 anton 3:
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
1.9 ! anton 8: REM as published by the Free Software Foundation, either version 3
1.1 anton 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:
1.4 pazsan 20: if not x%1==x goto makeit
1.5 pazsan 21: if not x%1==x--help goto makeit
22: if not x%1==x-h goto makeit
23: echo usage: gforthmi target-name [gforth-options]
1.1 anton 24: echo creates a relocatable image 'target-name'
25: goto end
26: :makeit
27: set outfile=%1
28: shift
1.4 pazsan 29: set GFORTHPAR=
30: :accupars
31: if x%1==x goto accudone
32: set GFORTHPAR=%GFORTHPAR% %1
33: shift
34: goto accupars
35: :accudone
1.2 pazsan 36: echo savesystem tmp.fi1 bye >tmp.fs
1.5 pazsan 37: gforth-d -c -n %GFORTHPAR% tmp.fs
1.2 pazsan 38: echo savesystem tmp.fi2 bye >tmp.fs
1.5 pazsan 39: gforth-d -c -o %GFORTHPAR% tmp.fs
1.2 pazsan 40: echo comp-image tmp.fi1 tmp.fi2 %outfile% bye >tmp.fs
1.6 pazsan 41: gforth-d -i kernl32l.fi -e 3 exboot.fs startup.fs comp-i.fs tmp.fs
1.2 pazsan 42: del tmp.fs
1.1 anton 43: del tmp.fi1
44: del tmp.fi2
45: :end
1.3 pazsan 46:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>