Annotation of gforth/BUILD-FROM-SCRATCH, revision 1.10

1.1       jwilke      1: # Procedures to build gforth from the CVS sources
1.3       anton       2: 
                      3: #Copyright (C) 2000 Free Software Foundation, Inc.
                      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
                      9: #as published by the Free Software Foundation; either version 2
                     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
                     18: #along with this program; if not, write to the Free Software
1.4       anton      19: #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
1.3       anton      20: 
                     21: 
1.1       jwilke     22: # created: 2may00jaw
                     23: 
1.6       jwilke     24: # To build gforth from scratch you need autoconf, automake and a 
                     25: # gforth0.5.0
1.1       jwilke     26: # This file can be used as shell script. If you make the environment
1.2       pazsan     27: # variable GFORTH point to an existing gforth installation, this
1.6       jwilke     28: # script takes over the whole build process and will produce the
                     29: # kernel kernel images from the sources as well
1.1       jwilke     30: 
1.6       jwilke     31: # try to guess a installed gforth
1.2       pazsan     32: 
1.8       jwilke     33: if [ "$GFORTH"xx = "xx" ];
1.2       pazsan     34: then
1.10    ! anton      35:        rm -f gforth
1.2       pazsan     36:        GFORTH=`which gforth`
1.9       anton      37:        if [ "$GFORTH"xx = "xx" ]; then
                     38:                echo 'BUILD-FROM-SCRATCH needs a working gforth (in environment variable GFORTH)'
                     39:                 exit 1
                     40:         fi
1.10    ! anton      41:        GFORTH="$GFORTH -m4M"
1.2       pazsan     42: fi
                     43: 
1.1       jwilke     44: # makes a aclocal.m4 which includes the automake macros for autconf
                     45: 
                     46: aclocal
                     47: 
                     48: # generate configure script
                     49: 
                     50: autoconf
                     51: 
                     52: # generate header files like engine/config.h.in
                     53: 
                     54: autoheader
                     55: 
1.8       jwilke     56: # run configure sXScript
1.1       jwilke     57: 
1.2       pazsan     58: ./configure $*
1.1       jwilke     59: 
1.2       pazsan     60: # if you have specified a previous Gforth, you can savely run make now
                     61: # with FORTHK and FORTHP changed appropriate.
1.1       jwilke     62: 
1.10    ! anton      63: #a local gforth.fi probably does not work with $GFORTH
        !            64: rm gforth.fi
        !            65: 
1.8       jwilke     66: echo xz
                     67: if [ "$GFORTH"xx != "xx" ]
1.2       pazsan     68: then
1.7       jwilke     69:  echo Running: make BUILDFORTH="$GFORTH" gforth...
1.10    ! anton      70:  make BUILDFORTH="$GFORTH" FORTHP="$GFORTH" gforth
1.7       jwilke     71:  echo Running: make BUILDFORTH="$GFORTH" all...
1.10    ! anton      72:  make BUILDFORTH="$GFORTH" FORTHP="$GFORTH" all
1.1       jwilke     73: fi

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