vos: convertROtoRW incorrect warning when RO not in VLDB
[openafs.git] / regen.sh
1 #!/bin/sh -e
2
3 while getopts "q" flag
4 do
5     case "$flag" in
6         q)
7             skipman=1;
8             ;;
9         *)
10             echo "Usage ./regen.sh [-q]"
11             echo "      -q skips man page generation"
12             exit
13             ;;
14     esac
15 done
16
17 echo "Updating configuration..."
18 echo "Running aclocal"
19 if which aclocal > /dev/null 2>&1; then
20   aclocal -I src/cf -I src/external/rra-c-util/m4
21 elif which aclocal-1.10 > /dev/null 2>&1; then
22   aclocal-1.10 -I src/cf -I src/external/rra-c-util/m4
23 else
24   echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
25   exit 1
26 fi
27
28 echo "Running libtoolize"
29 libtoolize -c -f
30 echo "Running autoconf"
31 autoconf
32 echo "Running autoconf for configure-libafs"
33 autoconf configure-libafs.ac > configure-libafs
34 chmod +x configure-libafs
35 echo "Running autoheader"
36 autoheader
37 #echo "Running automake"
38 #automake
39
40 echo "Deleting autom4te.cache directory"
41 rm -rf autom4te.cache
42
43 if [ $skipman ] ; then
44     echo "Skipping man page build"
45 else 
46     # Rebuild the man pages, to not require those building from source to have
47     # pod2man available.
48     if test -d doc/man-pages ; then
49         echo "Building man pages"
50         perl doc/man-pages/merge-pod doc/man-pages/pod*/*.in
51         (cd doc/man-pages && ./generate-man)
52     fi
53 fi