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)"
30 M4_INCS
="$M4_INCS -I src/external/rra-c-util/m4"
31 M4_INCS
="$M4_INCS -I src/external/autoconf-archive/m4"
33 echo "Running aclocal"
34 if which aclocal
> /dev
/null
2>&1; then
36 elif which aclocal-1.10
> /dev
/null
2>&1; then
39 echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
43 echo "Running autoconf"
45 echo "Running autoconf for configure-libafs"
46 autoconf configure-libafs.ac
> configure-libafs
47 chmod +x configure-libafs
48 echo "Running autoheader"
50 #echo "Running automake"
53 echo "Deleting autom4te.cache directory"
56 if [ $skipman ] ; then
57 echo "Skipping man page build"
59 # Rebuild the man pages, to not require those building from source to have
61 if test -d doc
/man-pages
; then
62 echo "Building man pages"
63 perl
doc
/man-pages
/merge-pod
doc
/man-pages
/pod
*/*.
in
64 (cd doc
/man-pages
&& .
/generate-man
)