File: autogen.sh

package info (click to toggle)
intel-vaapi-driver-shaders 2.4.1-2
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 36,524 kB
  • sloc: ansic: 285,486; asm: 20,806; cpp: 15,306; pascal: 5,836; makefile: 1,822; python: 153; xml: 146; sh: 51
file content (23 lines) | stat: -rwxr-xr-x 456 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd "$srcdir"

# install pre-commit hook
SRC_PRE_COMMIT=hooks/pre-commit.hook
GIT_PRE_COMMIT=.git/hooks/pre-commit

if [ ! \( -x $GIT_PRE_COMMIT -a -L $GIT_PRE_COMMIT \) ]; then
    rm -f $GIT_PRE_COMMIT
    ln -s ../../$SRC_PRE_COMMIT $GIT_PRE_COMMIT
fi

autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?

if test -z "$NOCONFIGURE"; then
    "$srcdir"/configure "$@"
fi