[gforth] / gforth / Attic / gforth-makeimage  

gforth: gforth/Attic/gforth-makeimage

Diff for /gforth/Attic/gforth-makeimage between version 1.3 and 1.5

version 1.3, Thu Mar 13 23:40:32 1997 UTC version 1.5, Thu Apr 10 15:00:05 1997 UTC
Line 1 
Line 1 
 #! /bin/sh  #! /bin/sh
 #Copyright (C) 1995-1997 Free Software Foundation, Inc.  #Copyright (C) 1997 Free Software Foundation, Inc.
   
 #This file is part of Gforth.  #This file is part of Gforth.
   
Line 19 
Line 19 
   
 if test $# = 0 || test $1 = --help || test $1 = -h; then  if test $# = 0 || test $1 = --help || test $1 = -h; then
   echo "usage: `basename $0` target-name [gforth-options]"    echo "usage: `basename $0` target-name [gforth-options]"
   echo "  environment: GFORTHD: the Gforth binary used (default: gforth-ditc)"  
   echo "creates a relocatable image 'target-name'"    echo "creates a relocatable image 'target-name'"
     echo "environment:"
     echo " \$GFORTHD (default: gforth-ditc): System used for creating the fixed images"
     echo " \$GFORTH (default: gforth): System used for computing the relocatable image"
   exit 1    exit 1
 fi  fi
 outfile=$1; shift  outfile=$1; shift
 tmpfile=./temp-image.fi  tmpfile=./temp-image.fi
 test "x$GFORTHD" != x || GFORTHD=gforth-ditc  test "x$GFORTHD" != x || GFORTHD=gforth-ditc
   test "x$GFORTH" != x || GFORTH=gforth
 $GFORTHD --clear-dictionary --no-offset-im $* -e "savesystem $tmpfile"1" bye"  $GFORTHD --clear-dictionary --no-offset-im $* -e "savesystem $tmpfile"1" bye"
 $GFORTHD --clear-dictionary --offset-image $* -e "savesystem $tmpfile"2" bye"  $GFORTHD --clear-dictionary --offset-image $* -e "savesystem $tmpfile"2" bye"
 $GFORTHD -i kernel.fi startup.fs  comp-image.fs -e "comp-image $tmpfile"1" $tmpfile"2" $outfile bye"  $GFORTH comp-image.fs -e "comp-image $tmpfile"1" $tmpfile"2" $outfile bye"
   chmod +x $outfile
 #gforth-0.2.1 -m 100000  comp-image.fs -e "comp-image $tmpfile"1" $tmpfile"2" $outfile bye"  #gforth-0.2.1 -m 100000  comp-image.fs -e "comp-image $tmpfile"1" $tmpfile"2" $outfile bye"
 rm $tmpfile"1" $tmpfile"2"  rm $tmpfile"1" $tmpfile"2"


Generate output suitable for use with a patch program
Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help