2011-11-08 18:52:50 +00:00
|
|
|
#!/bin/sh -e
|
2008-05-21 17:40:52 +01:00
|
|
|
|
|
|
|
while getopts "q" flag
|
|
|
|
do
|
|
|
|
case "$flag" in
|
|
|
|
q)
|
|
|
|
skipman=1;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage ./regen.sh [-q]"
|
|
|
|
echo " -q skips man page generation"
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
echo "Updating configuration..."
|
2012-05-21 18:04:32 +01:00
|
|
|
|
|
|
|
echo "Running libtoolize"
|
2012-09-06 19:26:32 +01:00
|
|
|
if which libtoolize > /dev/null 2>&1; then
|
|
|
|
libtoolize -c -f
|
|
|
|
elif which glibtoolize > /dev/null 2>&1; then
|
|
|
|
glibtoolize -c -f
|
|
|
|
else
|
|
|
|
echo "No libtoolize found on your system (looked for libtoolize & glibtoolize)"
|
|
|
|
exit 1
|
|
|
|
fi
|
2012-05-21 18:04:32 +01:00
|
|
|
|
2001-06-05 22:17:46 +01:00
|
|
|
echo "Running aclocal"
|
2009-12-22 21:34:23 +00:00
|
|
|
if which aclocal > /dev/null 2>&1; then
|
2011-09-13 09:54:12 +01:00
|
|
|
aclocal -I src/cf -I src/external/rra-c-util/m4
|
2009-12-22 21:34:23 +00:00
|
|
|
elif which aclocal-1.10 > /dev/null 2>&1; then
|
2011-09-13 09:54:12 +01:00
|
|
|
aclocal-1.10 -I src/cf -I src/external/rra-c-util/m4
|
2009-12-22 21:34:23 +00:00
|
|
|
else
|
|
|
|
echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2001-06-05 22:17:46 +01:00
|
|
|
echo "Running autoconf"
|
|
|
|
autoconf
|
2001-08-29 21:17:19 +01:00
|
|
|
echo "Running autoconf for configure-libafs"
|
2010-07-15 18:18:03 +01:00
|
|
|
autoconf configure-libafs.ac > configure-libafs
|
2001-08-29 21:17:19 +01:00
|
|
|
chmod +x configure-libafs
|
2001-06-05 22:17:46 +01:00
|
|
|
echo "Running autoheader"
|
|
|
|
autoheader
|
2001-06-28 07:44:19 +01:00
|
|
|
#echo "Running automake"
|
|
|
|
#automake
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-09-03 21:47:00 +01:00
|
|
|
echo "Deleting autom4te.cache directory"
|
2011-11-08 18:52:50 +00:00
|
|
|
rm -rf autom4te.cache
|
2006-09-03 21:47:00 +01:00
|
|
|
|
2008-05-21 17:40:52 +01:00
|
|
|
if [ $skipman ] ; then
|
|
|
|
echo "Skipping man page build"
|
|
|
|
else
|
|
|
|
# Rebuild the man pages, to not require those building from source to have
|
|
|
|
# pod2man available.
|
|
|
|
if test -d doc/man-pages ; then
|
|
|
|
echo "Building man pages"
|
2010-09-04 17:14:17 +01:00
|
|
|
perl doc/man-pages/merge-pod doc/man-pages/pod*/*.in
|
2008-05-21 17:40:52 +01:00
|
|
|
(cd doc/man-pages && ./generate-man)
|
|
|
|
fi
|
2005-12-08 12:14:33 +00:00
|
|
|
fi
|