From: Ulya Trofimovich Date: Mon, 24 Aug 2015 12:23:55 +0000 (+0100) Subject: distcheck.sh can only run from top source directory. X-Git-Tag: 0.15~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa7659cb67073d86b572bd58cca92d80e01bb371;p=re2c distcheck.sh can only run from top source directory. --- diff --git a/re2c/distcheck.sh b/re2c/distcheck.sh index efff7d4f..4916e523 100755 --- a/re2c/distcheck.sh +++ b/re2c/distcheck.sh @@ -7,10 +7,9 @@ then echo "usage: ./distcheck.sh " exit 1 fi -builddir=$1 -srcdir=`pwd` +builddir="$1" -$srcdir/autogen.sh +./autogen.sh # try to be portable on various MAKEs for make_prog in make bmake @@ -18,8 +17,8 @@ do rm -rf $builddir mkdir $builddir cd $builddir - $srcdir/configure --enable-docs && \ + ../configure --enable-docs && \ $make_prog bootstrap -j5 $make_prog distcheck -j5 - cd $srcdir + cd .. done