File:  [gforth] / gforth / gforthmi.bat
Revision 1.4: download - view: text, annotated - select for diffs
Sun Jul 23 19:29:56 2000 UTC (21 years, 3 months ago) by pazsan
Branches: MAIN
CVS tags: HEAD
Made Gforth compile on DOS. Cleaned up some minor parts in make binonlydist
Also renamed

unbuffered.fs -> unbuffer.fs
exceptions.fs -> except.fs
backtrace.fs -> backtrac.fs

in the CVS archive (do that in your gforth/CVS/Entries before checking out!!!)

If you want to make my life more easy, please refrain from using >8.3 file
names for vital parts.

REM @ECHO OFF
REM Copyright (C) 1997-1998 Free Software Foundation, Inc.

REM This file is part of Gforth.

REM Gforth is free software; you can redistribute it and/or
REM modify it under the terms of the GNU General Public License
REM as published by the Free Software Foundation; either version 2
REM of the License, or (at your option) any later version.

REM This program is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.REM See the
REM GNU General Public License for more details.

REM You should have received a copy of the GNU General Public License
REM along with this program; if not, write to the Free Software
REM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

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'
  goto end
:makeit
set outfile=%1
shift
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% -c -n %GFORTHPAR% tmp.fs
echo savesystem tmp.fi2 bye >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
del tmp.fi1
del tmp.fi2
:end


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>