File: regen.sh

package info (click to toggle)
openafs 1.8.14-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,972 kB
  • sloc: ansic: 455,934; xml: 66,858; perl: 11,967; makefile: 10,038; sh: 7,955; objc: 6,354; java: 5,638; cpp: 2,268; asm: 1,214; yacc: 441; tcl: 249; lex: 201; csh: 85
file content (66 lines) | stat: -rwxr-xr-x 1,515 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/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