2
VERSION_AUTOTOOLS=$(grep ^AC_INIT configure.ac | sed -r 's/[^[]+\[([^]]+)\].+/\1/')
3
VERSION_DEB=`head -n 1 debian/changelog | sed -re 's/.+\(([^)]+).+/\1/'`
4
VERSION="$VERSION_AUTOTOOLS"
6
if [ "$VERSION_AUTOTOOLS" != "$VERSION_DEB" ]
8
echo "Version mismatch between autotools ($VERSION_AUTOTOOLS) and debian/changelog ($VERSION_DEB)" >&2