summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 968bc8e233a32c63c2f30f3b3f029aad23a50baa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then
    # This part is allowed to fail
    cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
        chmod +x .git/hooks/pre-commit && \
        echo "Activated pre-commit hook." || :
fi

# README and INSTALL are required by automake, but may be deleted by
# clean up rules. to get automake to work, simply touch these here,
# they will be regenerated from their corresponding *.in files by
# ./configure anyway.
touch README INSTALL

# Make sure m4 directory exist
mkdir -p m4

autoreconf --force --install --verbose || exit $?