openafs/regen.sh
Russ Allbery a792acdadc Add include method for POD documentation
Add a preprocessor for POD documentation that handles a custom
=include directive.  Demonstrate how to use the preprocessor by
factoring out all the standard PTS options into a separate POD
fragment and including that fragment in all the PTS commands that
take the standard options instead of including that documentation
in each separate file.

Change-Id: If5255efc6d3fc670b38a9898b3d7d3c60af04fcf
Reviewed-on: http://gerrit.openafs.org/2440
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2010-07-15 21:09:13 -07:00

52 lines
1.1 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
elif which aclocal-1.10 > /dev/null 2>&1; then
aclocal-1.10 -I src/cf
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.in > 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/pod1/*.in
(cd doc/man-pages && ./generate-man)
fi
fi