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
20 aclocal -I src/cf -I src/external/rra-c-util/m4
21 elif which aclocal-1.10 > /dev/null 2>&1; then
22 aclocal-1.10 -I src/cf -I src/external/rra-c-util/m4
24 echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
28 echo "Running libtoolize"
30 echo "Running autoconf"
32 echo "Running autoconf for configure-libafs"
33 autoconf configure-libafs.ac > configure-libafs
34 chmod +x configure-libafs
35 echo "Running autoheader"
37 #echo "Running automake"
40 echo "Deleting autom4te.cache directory"
43 if [ $skipman ] ; then
44 echo "Skipping man page build"
46 # Rebuild the man pages, to not require those building from source to have
48 if test -d doc/man-pages ; then
49 echo "Building man pages"
50 perl doc/man-pages/merge-pod doc/man-pages/pod*/*.in
51 (cd doc/man-pages && ./generate-man)