10 echo "Usage ./regen.sh [-q]"
11 echo " -q skips man page generation"
17 echo "Updating configuration..."
18 echo "Running aclocal"
19 if which aclocal > /dev/null 2>&1; then
21 elif which aclocal-1.10 > /dev/null 2>&1; then
22 aclocal-1.10 -I src/cf
24 echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
28 echo "Running autoconf"
30 echo "Running autoconf for configure-libafs"
31 autoconf configure-libafs.ac > configure-libafs
32 chmod +x configure-libafs
33 echo "Running autoheader"
35 #echo "Running automake"
38 echo "Deleting autom4te.cache directory"
41 if [ $skipman ] ; then
42 echo "Skipping man page build"
44 # Rebuild the man pages, to not require those building from source to have
46 if test -d doc/man-pages ; then
47 echo "Building man pages"
48 perl doc/man-pages/merge-pod doc/man-pages/pod*/*.in
49 (cd doc/man-pages && ./generate-man)