DEVEL15-tweak-regen-20080521

LICENSE IPL10

make regen quieter if you don't want man pages


(cherry picked from commit 1705bda53e4ca198cf78d70ff424fc7af69b1879)
This commit is contained in:
Simon Wilkinson 2008-05-21 16:41:07 +00:00 committed by Derrick Brashear
parent 3ea5a3519f
commit 3d6ce5eea7

View File

@ -1,4 +1,19 @@
#!/bin/sh #!/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 "Updating configuration..."
echo "Running aclocal" echo "Running aclocal"
aclocal -I src/cf aclocal -I src/cf
@ -15,9 +30,13 @@ autoheader
echo "Deleting autom4te.cache directory" echo "Deleting autom4te.cache directory"
rm -r autom4te.cache rm -r autom4te.cache
# Rebuild the man pages, to not require those building from source to have if [ $skipman ] ; then
# pod2man available. echo "Skipping man page build"
if test -d doc/man-pages ; then else
echo "Building man pages" # Rebuild the man pages, to not require those building from source to have
(cd doc/man-pages && ./generate-man) # pod2man available.
if test -d doc/man-pages ; then
echo "Building man pages"
(cd doc/man-pages && ./generate-man)
fi
fi fi