prepare 541 Bytes
Newer Older
1 2
#!/bin/sh --

3 4
am()
{
Thomas Roessler's avatar
Thomas Roessler committed
5
  find -name Makefile.am -print | while read f ; do
6
    automake --foreign `dirname $f`/Makefile || return 1
7 8 9 10 11 12
  done
  return 0
}

if aclocal -I m4 && autoheader && (cd m4 && make -f Makefile.am.in ) \
  && am && autoconf && ./configure $@
13
then
14 15 16 17
  echo
  echo "The mutt source code was successfully prepared."
  echo "Type make && make install to build and install mutt."
  echo
18
else
19 20 21 22 23
  echo
  echo "Some part of the preparation process failed."
  echo "Please refer to doc/devel-notes.txt for details."
  echo
  exit 1
24
fi