3 # Change to source tree
5 [ -z "$srcdir" ] ||
cd "$srcdir"
10 # Check whether the version needs to be updated from git infos
11 if [ -d ".git" ] && [ -d "autom4te.cache" ]; then
12 git_describe
=`git describe 2>/dev/null || echo devel`
13 for f
in autom4te.cache
/output.
*; do
14 [ -f "$f" ] ||
continue
15 pkg_ver
=`${SED} -n "s/^PACKAGE_VERSION='\(.*\)'\$/\1/p" "$f"`
16 [ "x$pkg_ver" = "x$git_describe" ] ||
rm -rf "autom4te.cache"
20 echo "Generating configure files... may take a while."
22 autoreconf
--install --force && \
23 echo "Preparing was successful if there was no error messages above." && \
25 echo " ./configure && make" && \
26 echo "Run './configure --help' for more information"