autogen.sh 353 Bytes
Newer Older
Adam Jackson's avatar
Adam Jackson committed
1
2
#! /bin/sh

3
srcdir=`dirname "$0"`
Adam Jackson's avatar
Adam Jackson committed
4
5
6
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
7
cd "$srcdir"
Adam Jackson's avatar
Adam Jackson committed
8
9

autoreconf -v --install || exit 1
10
cd "$ORIGDIR" || exit $?
Adam Jackson's avatar
Adam Jackson committed
11

12
13
14
git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
    git config --local format.subjectPrefix "PATCH xf86driproto"

15
if test -z "$NOCONFIGURE"; then
16
    exec "$srcdir"/configure "$@"
17
fi