*** empty log message ***
[arla.git] / tests / generic-build
blobc4e5a07075f545b3adfebf084189c468bf9440af
1 #!/bin/sh
2 # $Id$
3 if test $# -ne 1 -a $# -ne 2; then
4 echo "Usage: $0 file [directory]"
5 exit 1
6 fi
7 filename=$1
8 if test $# -gt 1; then
9 b=$2
10 else
11 b=`basename $filename .tar.gz`
13 obj=$b-obj
15 gzip -dc $filename | tar xvf - >&4 2>&4 || exit 1
16 mkdir $obj || exit 1
17 cd $obj || exit 1
18 ../$b/configure $CONFIGURE_ARGS >&4 2>&4 || exit 1
19 make $MAKEFLAGS >&4 2>&4 || exit 1