10 echo "Usage ./regen.sh [-q]"
11 echo " -q skips man page generation"
17 echo "Updating configuration..."
19 echo "Running libtoolize"
20 if which libtoolize > /dev/null 2>&1; then
22 elif which glibtoolize > /dev/null 2>&1; then
25 echo "No libtoolize found on your system (looked for libtoolize & glibtoolize)"
29 echo "Running aclocal"
30 if which aclocal > /dev/null 2>&1; then
31 aclocal -I src/cf -I src/external/rra-c-util/m4
32 elif which aclocal-1.10 > /dev/null 2>&1; then
33 aclocal-1.10 -I src/cf -I src/external/rra-c-util/m4
35 echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
39 echo "Running autoconf"
41 echo "Running autoconf for configure-libafs"
42 autoconf configure-libafs.ac > configure-libafs
43 chmod +x configure-libafs
44 echo "Running autoheader"
46 #echo "Running automake"
49 echo "Deleting autom4te.cache directory"
52 if [ $skipman ] ; then
53 echo "Skipping man page build"
55 # Rebuild the man pages, to not require those building from source to have
57 if test -d doc/man-pages ; then
58 echo "Building man pages"
59 perl doc/man-pages/merge-pod doc/man-pages/pod*/*.in
60 (cd doc/man-pages && ./generate-man)