Annotation of gforth/gfgen, revision 1.3

1.1       anton       1: #! /bin/sh
                      2: #script similar to vmgen for  generating some files from prim.b etc.
1.3     ! anton       3: #Copyright (C) 2001,2002,2003,2007 Free Software Foundation, Inc.
1.1       anton       4: 
                      5: #This file is part of Gforth.
                      6: 
                      7: #Gforth is free software; you can redistribute it and/or
                      8: #modify it under the terms of the GNU General Public License
1.2       anton       9: #as published by the Free Software Foundation, either version 3
1.1       anton      10: #of the License, or (at your option) any later version.
                     11: 
                     12: #This program is distributed in the hope that it will be useful,
                     13: #but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
                     15: #GNU General Public License for more details.
                     16: 
                     17: #You should have received a copy of the GNU General Public License
1.2       anton      18: #along with this program; if not, see http://www.gnu.org/licenses/.
1.1       anton      19: 
                     20: #USAGE: GFORTH=... gfgen $TAG
                     21: #where $tag is "" or "-fast" depending on what you want to process and generate
                     22: TAG=$1
                     23: #only files different between gforth and gforth-fast are generated here
                     24: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.i\" save-mem out-filename 2! s\" prim$TAG.b\" ' output-c ' output-c-combined process-file bye" >engine/prim$TAG.i &&
                     25: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-label dup process-file bye" >engine/prim_lab$TAG.i &&
                     26: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' noop dup process-file bye" >engine/prim_grp$TAG.i &&
                     27: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-forthname dup process-file bye" >engine/prim_names$TAG.i &&
                     28: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-superend dup process-file bye" >engine/prim_superend$TAG.i &&
                     29: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-profile ' output-profile-combined process-file bye" >engine/profile$TAG.i &&
                     30: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-super2-simple ' output-super2-combined process-file bye" >engine/super2$TAG.i &&
                     31: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-costs-gforth-simple ' output-costs-gforth-combined process-file bye" >engine/costs$TAG.i &&
                     32: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-c-prim-num ' noop process-file bye" >engine/prim_num$TAG.i
                     33: #unused:
                     34: #$GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' noop ' output-peephole process-file bye" >engine/peephole$TAG.i &&

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