-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap
executable file
·42 lines (30 loc) · 743 Bytes
/
bootstrap
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
#!/bin/sh
user_opts="$*"
verbose_mode=""
subdir_mode="--no-recursive"
# autoconf supports env variable WARNING
# when not set, disable all warnings for the user
if [ -n "$WARNINGS" ]
then
echo "found WARNINGS: $WARNINGS"
verbose_mode="--verbose"
fi
if [ -z "$WARNINGS" ]
then
WARNINGS="none"
verbose_mode=""
fi
# maintainer should see all warnings
# probably bail out with an error
#
if [ -n "$MAINTAINER_MODE" -o -n "$MAINTAINERMODE" ]
then
WARNINGS="all"
verbose_mode=" --verbose"
echo "MAINTAINER_MODE activated: $MAINTAINER_MODE / $MAINTAINERMODE"
fi
export WARNINGS="$WARNINGS"
# autoreconf supported commandline parameter example:
# long: --warnings=all
# short: -Wall
exec autoreconf $verbose_mode $subdir_mode $user_opts