version 1.2, 2002/08/20 07:59:01
|
version 1.8, 2007/12/31 19:02:24
|
Line 1
|
Line 1
|
#! /bin/sh |
#! /bin/sh |
# @configure_input@ |
# @configure_input@ |
#Copyright (C) 2001 Free Software Foundation, Inc. |
#Copyright (C) 2001,2002,2003,2007 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
#Gforth is free software; you can redistribute it and/or |
#Gforth is free software; you can redistribute it and/or |
#modify it under the terms of the GNU General Public License |
#modify it under the terms of the GNU General Public License |
#as published by the Free Software Foundation; either version 2 |
#as published by the Free Software Foundation, either version 3 |
#of the License, or (at your option) any later version. |
#of the License, or (at your option) any later version. |
|
|
#This program is distributed in the hope that it will be useful, |
#This program is distributed in the hope that it will be useful, |
Line 15
|
Line 15
|
#GNU General Public License for more details. |
#GNU General Public License for more details. |
|
|
#You should have received a copy of the GNU General Public License |
#You should have received a copy of the GNU General Public License |
#along with this program; if not, write to the Free Software |
#along with this program; if not, see http://www.gnu.org/licenses/. |
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
|
|
|
prefix=@prefix@ |
prefix=@prefix@ |
test "x$GFORTHDIR" != x || GFORTHDIR=@exec_prefix@/bin |
test "x$GFORTHDIR" != x || GFORTHDIR=@exec_prefix@/bin |
test "x$GFORTHDATADIR" != x || GFORTHDATADIR=$prefix/share/gforth/@VERSION@ |
test "x$GFORTHDATADIR" != x || GFORTHDATADIR=$prefix/share/gforth/@PACKAGE_VERSION@ |
GFORTH=$GFORTHDIR/gforth-fast |
GFORTH=$GFORTHDIR/gforth-fast |
if test $# = 0 || test $1 = --help || test $1 = -h; then |
if test $# = 0 || test $1 = --help || test $1 = -h; then |
echo "usage: `basename $0` <file>.vmg" |
echo "usage: `basename $0` <file>.vmg" |
exit 0 |
exit 0 |
elif test $1 = --version || test $1 = -v; then |
elif test $1 = --version || test $1 = -v; then |
echo "vmgen (@PACKAGE@) @VERSION@" |
echo "vmgen (@PACKAGE_NAME@) @PACKAGE_VERSION@" |
$GFORTH --version |
$GFORTH --version |
echo 'Copyright (C) 2001 Free Software Foundation, Inc.' |
echo 'Copyright (C) 2001,2002,2003,2007 Free Software Foundation, Inc.' |
echo 'This program is part of Gforth' |
echo 'This program is part of Gforth' |
$GFORTH -e "license bye" |
$GFORTH -e "license bye" |
exit 0 |
exit 0 |
Line 36 else
|
Line 35 else
|
true #old shells require this |
true #old shells require this |
fi |
fi |
file=`basename $1 .vmg` |
file=`basename $1 .vmg` |
$GFORTH -m 1000000 -e "create vmgen" $GFORTHDATADIR/prims2x.fs -e "c-flag on s\" $1\" ' output-c ' output-c-combined process-file bye" > $file-vm.i && |
$GFORTH -m 1000000 -e "create vmgen" $GFORTHDATADIR/prims2x.fs -e "c-flag on s\" $file-vm.i\" out-filename 2! s\" $1\" ' output-c ' output-c-combined process-file bye" > $file-vm.i && |
$GFORTH -m 1000000 -e "create vmgen" $GFORTHDATADIR/prims2x.fs -e "c-flag on s\" $1\" ' output-disasm dup process-file bye" > $file-disasm.i && |
$GFORTH -m 1000000 -e "create vmgen" $GFORTHDATADIR/prims2x.fs -e "c-flag on s\" $1\" ' output-disasm dup process-file bye" > $file-disasm.i && |
$GFORTH -m 1000000 -e "create vmgen" $GFORTHDATADIR/prims2x.fs -e "c-flag on s\" $1\" ' output-gen ' noop process-file bye" > $file-gen.i && |
$GFORTH -m 1000000 -e "create vmgen" $GFORTHDATADIR/prims2x.fs -e "c-flag on s\" $1\" ' output-gen ' noop process-file bye" > $file-gen.i && |
$GFORTH -m 1000000 -e "create vmgen" $GFORTHDATADIR/prims2x.fs -e "c-flag on s\" $1\" ' output-label dup process-file bye" > $file-labels.i && |
$GFORTH -m 1000000 -e "create vmgen" $GFORTHDATADIR/prims2x.fs -e "c-flag on s\" $1\" ' output-label dup process-file bye" > $file-labels.i && |