:: bzip3 / bootstrap.sh 653 B raw

1
#!/usr/bin/env sh
2
set -e
3
4
incomplete_source () {
5
    printf '%s\n' \
6
        "$1. Please either:" \
7
        "* $2," \
8
        "* or use the source packages instead of a repo archive" \
9
        "* or use a full Git clone." >&2
10
    exit 1
11
}
12
13
# This enables easy building from Github's snapshot archives
14
if [ ! -e ".git" ]; then
15
    if [ ! -f ".tarball-version" ]; then
16
    incomplete_source "No version information found" \
17
        "identify the correct version with \`echo \$version > .tarball-version\`"
18
    fi
19
else
20
    # Just a head start to save a ./configure cycle
21
    ./build-aux/git-version-gen .tarball-version > .version
22
fi
23
24
autoreconf --install
tab: 248 wrap: offon