version 1.16, 2012/03/21 00:53:06
|
version 1.21, 2012/12/31 15:25:18
|
Line 1
|
Line 1
|
#! @SH@ |
#! @mi_prefix@/bin/bash |
# @configure_input@ |
# @configure_input@ |
#Copyright (C) 1997,1998,2000,2002,2003,2004,2007 Free Software Foundation, Inc. |
#Copyright (C) 1997,1998,2000,2002,2003,2004,2007,2012 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
Line 19
|
Line 19
|
|
|
startup="-i @kernel_fi@ exboot.fs startup.fs @asm_fs@ @disasm_fs@" |
startup="-i @kernel_fi@ exboot.fs startup.fs @asm_fs@ @disasm_fs@" |
prefix=@prefix@ |
prefix=@prefix@ |
exec_prefix=@exec_prefix@ |
exec_prefix=@exec_prefix@@mi_prefix@ |
if [ -f "@libdir@/gforth/@PACKAGE_VERSION@/gforth.fi" ] |
if [ -f "@libdir@/gforth/@PACKAGE_VERSION@/gforth.fi" ] |
then |
then |
helper="" |
helper="" |
else |
else |
helper="$startup" |
helper="$startup" |
fi |
fi |
test "x$GFORTHD" != x || GFORTHD="@bindir@/gforth-ditc-@PACKAGE_VERSION@ --die-on-signal" |
test "x$GFORTHD" != x || GFORTHD="@bindir@/gforth-ditc-@PACKAGE_VERSION@@ARCH@ --die-on-signal" |
test "x$GFORTH" != x || GFORTH="@bindir@/gforth-@PACKAGE_VERSION@ --die-on-signal $helper" |
test "x$GFORTH" != x || GFORTH="@bindir@/gforth-@PACKAGE_VERSION@@ARCH@ --die-on-signal $helper" |
if test $# = 0 || test $1 = --help || test $1 = -h; then |
if test $# = 0 || test $1 = --help || test $1 = -h; then |
echo "usage: `basename $0` [--application] target-name [gforth-options]" |
echo "usage: `basename $0` [--application] target-name [gforth-options]" |
echo "creates a relocatable image 'target-name'" |
echo "creates a relocatable image 'target-name'" |
Line 39 if test $# = 0 || test $1 = --help || te
|
Line 39 if test $# = 0 || test $1 = --help || te
|
elif test $1 = --version || test $1 = -v; then |
elif test $1 = --version || test $1 = -v; then |
echo "gforthmi (@PACKAGE_NAME@) @PACKAGE_VERSION@" |
echo "gforthmi (@PACKAGE_NAME@) @PACKAGE_VERSION@" |
$GFORTH --version |
$GFORTH --version |
echo 'Copyright (C) 1998,2002,2003,2004,2007 Free Software Foundation, Inc.' |
echo 'Copyright (C) 1998,2002,2003,2004,2007,2012 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 |
elif test $1 = --application; then |
elif test $1 = --application; then |
application=yes |
application=yes |
shift |
shift |
generate="$@" |
|
outfile=$1; shift |
outfile=$1; shift |
|
generate="$@" |
elif test $1 = --system; then |
elif test $1 = --system; then |
shift |
shift |
generate=$startup |
generate=$startup |
outfile="@libdir@/gforth/@PACKAGE_VERSION@/gforth.fi" |
outfile="@libdir@/gforth/@PACKAGE_VERSION@/gforth.fi" |
|
export libccdir="@libexecdir@/gforth/@PACKAGE_VERSION@/libcc-named" |
else |
else |
generate="$@" |
|
outfile=$1; shift |
outfile=$1; shift |
|
generate="$@" |
fi |
fi |
tmpfile=./temp-image.fi |
tmpfile=./temp-image.fi |
$GFORTHD --clear-dictionary --no-offset-im --die-on-signal $generate -e "savesystem $tmpfile"1" bye" |
$GFORTHD --clear-dictionary --no-offset-im --die-on-signal $generate -e "savesystem $tmpfile"1" bye" |