File: autogen.sh

package info (click to toggle)
oocairo 1.4-1.2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 712 kB
  • sloc: ansic: 3,352; makefile: 59; sh: 15
file content (21 lines) | stat: -rwxr-xr-x 352 bytes parent folder | download | duplicates (2)
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

# Allow for out-of-tree builds
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

do_cmd() {
	echo "* Running $@"
	$@ || exit 1
}
(
do_cmd cd "$srcdir"
do_cmd autoreconf --install
)

if test -z "$NOCONFIGURE"; then
	do_cmd "$srcdir/configure" --cache-file=config.cache $@ &&
		( echo ; echo "Now type 'make' to start compiling" )
fi