10 echo "Usage ./regen.sh [-q]"
11 echo " -q skips man page generation"
17 echo "Updating configuration..."
19 echo "Running libtoolize"
22 echo "Running aclocal"
23 if which aclocal > /dev/null 2>&1; then
24 aclocal -I src/cf -I src/external/rra-c-util/m4
25 elif which aclocal-1.10 > /dev/null 2>&1; then
26 aclocal-1.10 -I src/cf -I src/external/rra-c-util/m4
28 echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
32 echo "Running autoconf"
34 echo "Running autoconf for configure-libafs"
35 autoconf configure-libafs.ac > configure-libafs
36 chmod +x configure-libafs
37 echo "Running autoheader"
39 #echo "Running automake"
42 echo "Deleting autom4te.cache directory"
45 if [ $skipman ] ; then
46 echo "Skipping man page build"
48 # Rebuild the man pages, to not require those building from source to have
50 if test -d doc/man-pages ; then
51 echo "Building man pages"
52 perl doc/man-pages/merge-pod doc/man-pages/pod*/*.in
53 (cd doc/man-pages && ./generate-man)