--- gforth/gforthmi.bat 1997/05/21 20:39:29 1.1 +++ gforth/gforthmi.bat 2003/03/09 15:16:49 1.7 @@ -1,5 +1,5 @@ -@ECHO OFF -REM Copyright (C) 1997 Free Software Foundation, Inc. +REM @ECHO OFF +REM Copyright (C) 1997-1998,2000 Free Software Foundation, Inc. REM This file is part of Gforth. @@ -17,22 +17,30 @@ REM You should have received a copy of t REM along with this program; if not, write to the Free Software REM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -if not "%1"=="" goto makeit -if not "%1"=="--help" goto makeit -if not "%1"=="-h" goto makeit - echo usage: gforth-makeimage target-name [gforth-options] - echo environment: GFORTHD: the Gforth binary used (default: gforth-ditc) +if not x%1==x goto makeit +if not x%1==x--help goto makeit +if not x%1==x-h goto makeit + echo usage: gforthmi target-name [gforth-options] echo creates a relocatable image 'target-name' goto end :makeit set outfile=%1 shift -if not "%GFORTHD%"=="" goto doit -set GFORTHD=gforth-d -:doit -%GFORTHD% --clear-dictionary --no-offset-im %1 %2 %3 %4 %5 -e "savesystem tmp.fi1 bye" -%GFORTHD% --clear-dictionary --offset-image %1 %2 %3 %4 %5 -e "savesystem tmp.fi2 bye" -%GFORTHD% -i kernel.fi startup.fs comp-i.fs -e "comp-image tmp.fi1 tmp.fi2 %outfile% bye" +set GFORTHPAR= +:accupars +if x%1==x goto accudone +set GFORTHPAR=%GFORTHPAR% %1 +shift +goto accupars +:accudone +echo savesystem tmp.fi1 bye >tmp.fs +gforth-d -c -n %GFORTHPAR% tmp.fs +echo savesystem tmp.fi2 bye >tmp.fs +gforth-d -c -o %GFORTHPAR% tmp.fs +echo comp-image tmp.fi1 tmp.fi2 %outfile% bye >tmp.fs +gforth-d -i kernl32l.fi -e 3 exboot.fs startup.fs comp-i.fs tmp.fs +del tmp.fs del tmp.fi1 del tmp.fi2 :end + \ No newline at end of file