#! /bin/sh
# bootstrap git sources
# This file is not distributed.

set -x

# create ChangeLog from log of git repo
if test ! -e ChangeLog; then
        git log ./ > ChangeLog
else
        if git log ./ > ChangeLog.t \
           && diff ChangeLog.t ChangeLog >/dev/null 2>&1; then
                mv -f ChangeLog.t ChangeLog
        else
                rm -f ChangeLog.t
        fi
fi

if test ! -e build-aux; then
        mkdir build-aux
fi

autoreconf -v -i -I build-aux -I m4
