File: autogen.sh

package info (click to toggle)
adcli 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 764 kB
  • sloc: ansic: 11,503; xml: 1,363; makefile: 206; sh: 17
file content (26 lines) | stat: -rwxr-xr-x 457 bytes parent folder | download | duplicates (3)
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
#!/bin/sh -e

set -e

srcdir=$(dirname $0)
test -z "$srcdir" && srcdir=.

origdir=$(pwd)
cd $srcdir

# Some boiler plate to get git setup as expected
if test -d .git; then
	if test -f .git/hooks/pre-commit.sample && \
	   test ! -f .git/hooks/pre-commit; then
		cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
	fi
fi

set -x

autoreconf --force --install --verbose
if test x"$NOCONFIGURE" = x; then
  cd $origdir
  exec $srcdir/configure "$@"
fi