openafs/regen.sh
Simon Wilkinson 58d136ed0d Use rra-c-util m4 from src/external
This commit switches us over from using manually maintained copies
of Russ's rra-c-util m4 macros, to using ones that are automatically
imported from his upstream git tree.

The macro versioning in the OpenAFS tree was slightly confused. This
(approximately) updates us from using version 3.3 of the macros to
version 3.8. The signifcant changes are:

  *) Use PATH_KRB5_CONFIG rather than KRB5_CONFIG to set the location
     of the krb5-config file
  *) Use --with-gssapi-{include, lib} if given, rather than krb5-config
  *) Use --with-krb5-{include, lib} if given, rather than krb5-config
  *) Define HAVE_KERBEROS if we find a Kerberos library

The first, in particular, is likely to cause some confusion.

Change-Id: Ie7a1c0db31b32fc7ac9ad7bded2c4ffce3ac013f
Reviewed-on: http://gerrit.openafs.org/5418
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
2011-09-14 10:34:51 -07:00

52 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
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
echo "Updating configuration..."
echo "Running aclocal"
if which aclocal > /dev/null 2>&1; then
aclocal -I src/cf -I src/external/rra-c-util/m4
elif which aclocal-1.10 > /dev/null 2>&1; then
aclocal-1.10 -I src/cf -I src/external/rra-c-util/m4
else
echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
exit 1
fi
echo "Running autoconf"
autoconf
echo "Running autoconf for configure-libafs"
autoconf configure-libafs.ac > configure-libafs
chmod +x configure-libafs
echo "Running autoheader"
autoheader
#echo "Running automake"
#automake
echo "Deleting autom4te.cache directory"
rm -r autom4te.cache
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"
perl doc/man-pages/merge-pod doc/man-pages/pod*/*.in
(cd doc/man-pages && ./generate-man)
fi
fi