Revision 12,
1.0 KB
checked in by mmamonski, 14 years ago
(diff) |
version 1.0.7 release candidate
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | run() { |
---|
5 | echo "running $@ ($PWD)" |
---|
6 | eval "$@" |
---|
7 | } |
---|
8 | |
---|
9 | check() |
---|
10 | { |
---|
11 | printf "checking for $1... " |
---|
12 | if ($1 --version < /dev/null > /dev/null 2>&1); then |
---|
13 | echo "yes" |
---|
14 | else |
---|
15 | echo "no" |
---|
16 | exit 1 |
---|
17 | fi |
---|
18 | } |
---|
19 | |
---|
20 | ACLOCAL=${ACLOCAL:=aclocal} |
---|
21 | AUTOHEADER=${AUTOHEADER:=autoheader} |
---|
22 | AUTOCONF=${AUTOCONF:=autoconf} |
---|
23 | LIBTOOLIZE=${LIBTOOLIZE:=libtoolize} |
---|
24 | AUTOMAKE=${AUTOMAKE:=automake} |
---|
25 | |
---|
26 | check $ACLOCAL |
---|
27 | check $AUTOHEADER |
---|
28 | check $AUTOCONF |
---|
29 | check $LIBTOOLIZE |
---|
30 | check $AUTOMAKE |
---|
31 | |
---|
32 | mkdir -p scripts |
---|
33 | |
---|
34 | run ${ACLOCAL} -I m4 | grep -v ^/usr/share/aclocal || exit 1 |
---|
35 | run ${LIBTOOLIZE} --automake --copy --force || exit 1 |
---|
36 | run ${AUTOHEADER} --warnings=all || exit 1 |
---|
37 | run ${AUTOMAKE} --foreign --add-missing --copy --warnings=all || exit 1 |
---|
38 | run ${AUTOCONF} --warnings=all -Wno-obsolete || exit 1 |
---|
39 | |
---|
40 | if [ -n "$*" ]; then |
---|
41 | args="$*" |
---|
42 | elif [ -f config.log ]; then |
---|
43 | args=`grep '\$ *\./configure ' config.log \ |
---|
44 | | sed 's:^ *\$ *\./configure ::;s:--no-create::;s:--no-recursion::' \ |
---|
45 | 2>/dev/null` |
---|
46 | fi |
---|
47 | |
---|
48 | (cd drmaa_utils && run sh autogen.sh "$@") |
---|
49 | run ./configure ${args} |
---|
Note: See
TracBrowser
for help on using the repository browser.