--- gforth/gforthmi.bat 1998/12/20 23:17:55 1.3 +++ gforth/gforthmi.bat 2000/07/23 19:29:56 1.4 @@ -17,9 +17,9 @@ 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 +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: gforth-makeimage target-name [gforth-options] echo environment: GFORTHD: the Gforth binary used (default: gforth-d) echo creates a relocatable image 'target-name' @@ -27,13 +27,20 @@ if not "%1"=="-h" goto makeit :makeit set outfile=%1 shift -if not "%GFORTHD%"=="" goto doit +set GFORTHPAR= +:accupars +if x%1==x goto accudone +set GFORTHPAR=%GFORTHPAR% %1 +shift +goto accupars +:accudone +if not x%GFORTHD%==x goto doit set GFORTHD=gforth-d :doit echo savesystem tmp.fi1 bye >tmp.fs -%GFORTHD% --clear-dictionary --no-offset-im %1 %2 %3 %4 %5 %6 tmp.fs +%GFORTHD% -c -n %GFORTHPAR% tmp.fs echo savesystem tmp.fi2 bye >tmp.fs -%GFORTHD% --clear-dictionary --offset-image %1 %2 %3 %4 %5 %6 tmp.fs +%GFORTHD% -c -o %GFORTHPAR% tmp.fs echo comp-image tmp.fi1 tmp.fi2 %outfile% bye >tmp.fs %GFORTHD% -i kernl32l.fi startup.fs comp-i.fs tmp.fs del tmp.fs