File: bootstrap.sh

package info (click to toggle)
galera-3 25.3.37-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,744 kB
  • sloc: cpp: 106,056; ansic: 8,979; sh: 1,310; tcl: 59; makefile: 10
file content (34 lines) | stat: -rwxr-xr-x 680 bytes parent folder | download | duplicates (8)
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
#!/bin/sh

# This script bootraps the build process for the freshly checked
# working copy

LOG=$0.log

run_prog()
{
    echo -n "Running $1... "
    $* 1>$LOG 2>&1 && echo "Ok" && rm -f $LOG || \
    (echo "Failed. See $LOG"; return 1)
}
set -e
# Make aclocal to search for m4 macros in /usr/local
if test -d /usr/local/share/aclocal
then
    ACLOCAL_OPTS=" -I /usr/local/share/aclocal "
fi

if test -x "$(which autoreconf)"
then
    export ACLOCAL="aclocal $ACLOCAL_OPTS"
    run_prog autoreconf -fisv
else
    run_prog libtoolize && \
    run_prog aclocal $ACLOCAL_OPTS && \
    run_prog autoheader configure.ac && \
    run_prog automake -af && \
    run_prog autoconf
fi

#