#!/bin/sh -e

# $Id: bootstrap,v 1.17 2003/07/17 09:05:14 flux Exp $

#
# bootstrap - script to bootstrap the distribution rolling engine
#
# to build a tarball, ready for distribution, from fresh checked out
# cvs sources, do
#
#    ./bootstrap && ./configure && make && make distcheck
#
# this will yield a tarball, e.g. mcl-20020109.tar.gz .  Once this has been
# run, one can, after e.g. editing sources, run just
#
#     make distcheck
#
# to generate a new tarball.  (No need to run ./bootstrap again in this case.)
# After downloading, users do
#
#    tar zxf mcl-20020109.tar.gz
#    cd mcl-20020109
#    ./configure && make
#    make install
#
# To force a new configure.ac.in to get read, do either
#
#  make configure.ac
#
# or
#
#  rm VERSION ; ./bootstrap
#
# .

set -x

if test ! -f VERSION
then
    ./setversion
fi

if test ! -L util/Makefile.am
then
   ./mkutil
fi

aclocal \
    && autoheader \
    && automake --verbose --gnu --add-missing \
    && autoconf

