openafs/regen.sh
Andrew Deason 96bc48a573 Use autoconf-archive m4 from src/external
Switch to using the m4 macros from autoconf-archive in our
src/external mechanism, instead of manually-copied versions in src/cf.
The src/external copy of ax_gcc_func_attribute.m4 is identical to the
existing copy in src/cf, so that should incur no changes. There are
also a few new macros pulled in, but they are currently unused.

Increase our AC_PREREQ in configure.ac to 2.64, to match the AC_PREREQ
in some of the new files.

Reviewed-on: https://gerrit.openafs.org/14135
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit ca847ddf35)

Change-Id: Ifa43b3869e426fada5bd925b0ae002a0f6436232
Reviewed-on: https://gerrit.openafs.org/14944
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
2022-08-04 12:26:41 -04:00

67 lines
1.5 KiB
Bash
Executable File

#!/bin/sh -e
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 libtoolize"
if which libtoolize > /dev/null 2>&1; then
libtoolize -c -f -i
elif which glibtoolize > /dev/null 2>&1; then
glibtoolize -c -f -i
else
echo "No libtoolize found on your system (looked for libtoolize & glibtoolize)"
exit 1
fi
M4_INCS="-I src/cf"
M4_INCS="$M4_INCS -I src/external/rra-c-util/m4"
M4_INCS="$M4_INCS -I src/external/autoconf-archive/m4"
echo "Running aclocal"
if which aclocal > /dev/null 2>&1; then
aclocal $M4_INCS
elif which aclocal-1.10 > /dev/null 2>&1; then
aclocal-1.10 $M4_INCS
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 -rf 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