mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
7b35b1f29d
If something fails, don't ignore the error.
Change-Id: Ia679cf8541adce573fa3ee16ae8fafec0cfae790
Reviewed-on: http://gerrit.openafs.org/5817
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry-picked from 6d519cf123
)
Reviewed-on: http://gerrit.openafs.org/5983
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
52 lines
1.2 KiB
Bash
Executable File
52 lines
1.2 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 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 -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
|