#!/bin/sh
rm -f src/*~ *~
make maintainer-clean
autoheader -Wall
autoconf -Wall
case `automake --version | head -n 1 | cut -f 4 -d " "` in
1.6*)
    automake -a -c -f 2>/dev/null
    rm -f missing mkinstalldirs
    ;;
*)
    echo "Please use automake version 1.6.x"
    ;;
esac
rm -rf autom4te.cache
sed -e s/%%version%%/`./configure --version | grep ^scmxx | cut -f 3 -d " "`/ scmxx.spec.in > scmxx.spec
