File: bootstrap

package info (click to toggle)
wzdftpd 0.8.1-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 5,440 kB
  • ctags: 3,559
  • sloc: ansic: 40,580; sh: 9,306; lex: 2,082; makefile: 528; sql: 206; perl: 18
file content (45 lines) | stat: -rwxr-xr-x 877 bytes parent folder | download | duplicates (5)
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
#!/bin/sh

# default arguments

ACLOCAL=aclocal
AUTOCONF=autoconf
AUTOHEADER=autoheader
AUTOMAKE=automake
LIBTOOLIZE=libtoolize

ACLOCAL_ARGS="-I m4/ -I ac-helpers/"
#ACLOCAL_ARGS="-I /usr/local/share/aclocal"

if [ -f bootstrap.local ]; then
  # openbsd pdksh does not execute script if it is not executable ..
  chmod u+x bootstrap.local
  . ./bootstrap.local
fi


abort () {
    echo "$1 not found or command failed. Aborting!"
    exit 1
}


rm -rf autom4te.cache/
rm -f aclocal.m4 && touch aclocal.m4 && chmod +w aclocal.m4

echo "+ $LIBTOOLIZE"
$LIBTOOLIZE --force --copy --automake || abort "libtoolize"

echo "+ $ACLOCAL $ACLOCAL_ARGS"
$ACLOCAL $ACLOCAL_ARGS || abort "aclocal"

echo "+ $AUTOHEADER"
$AUTOHEADER || abort "autoheader"

echo "+ $AUTOMAKE"
$AUTOMAKE --add-missing --copy --gnu || abort "automake"

echo "+ $AUTOCONF"
$AUTOCONF || abort "autoconf"

exit 0