File:  [gforth] / gforth / gforthmi.cmd
Revision 1.6: download - view: text, annotated - select for diffs
Mon Dec 31 19:02:24 2007 UTC (12 years, 3 months ago) by anton
Branches: MAIN
CVS tags: v0-7-0, HEAD
updated copyright year after changing license notice

    1: /*
    2: Copyright 1997,2000,2003,2007 Free Software Foundation, Inc.
    3: 
    4: This file is part of Gforth.
    5: 
    6: Gforth is free software; you can redistribute it and/or
    7: modify it under the terms of the GNU General Public License
    8: as published by the Free Software Foundation, either version 3
    9: of the License, or (at your option) any later version.
   10: 
   11: This program is distributed in the hope that it will be useful,
   12: but WITHOUT ANY WARRANTY; without even the implied warranty of
   13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14: GNU General Public License for more details.
   15: 
   16: You should have received a copy of the GNU General Public License
   17: along with this program; if not, see http://www.gnu.org/licenses/.
   18: */
   19: parse arg args
   20: 
   21: if args \== "" then do
   22:     parse var args arg args
   23:     select
   24:         when arg = "--help" then dohelp=1
   25:         when arg = "-h" then dohelp=1
   26:         otherwise dohelp=0
   27:     end
   28:   end
   29: else
   30:     dohelp=1
   31: 
   32: if dohelp then do
   33:   say "usage: gforth-makeimage target-name [gforth-options]"
   34:   say "  environment: GFORTHD: the Gforth binary used (default: gforth-ditc)"
   35:   say "creates a relocatable image 'target-name'"
   36:   exit 1
   37: end
   38: 
   39: 'gforth-ditc' '-p' '.' '--clear-dictionary' '--no-offset-im' args '-e' '"savesystem tmp.fi1 bye"'
   40: 'gforth-ditc' '-p' '.' '--clear-dictionary' '--offset-image' args '-e' '"savesystem tmp.fi2 bye"'
   41: 'gforth-ditc' '-p' '.' '-i' 'kernel.fi' 'startup.fs' 'comp-i.fs' '-e' '"comp-image tmp.fi1 tmp.fi2 'arg' bye"'
   42: del tmp.fi1
   43: del tmp.fi2
   44: 

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