#!/bin/bash -e
if [ "${1}" = "clean" ]; then
make distclean 2>/dev/null || true
for f in missing install-sh mkinstalldirs config.guess config.sub \
depcomp INSTALL COPYING ltmain.sh; do
test -h "$f" && rm -f -v "$f"
done
rm -f -v *~ configure config.h.in config.h stamp-h.in stamp-h1* \
config.cache config.log config.status aclocal.m4 libtool
rm -r -f -v autom4te.cache
rm -f -v *.lsm
else
aclocal
autoheader
automake --add-missing
autoreconf
fi