]> granicus.if.org Git - re2c/commitdiff
distcheck.sh can only run from top source directory.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 24 Aug 2015 12:23:55 +0000 (13:23 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 24 Aug 2015 12:23:55 +0000 (13:23 +0100)
re2c/distcheck.sh

index efff7d4fc0e311e286b9d2ce8293ac14fa8e115a..4916e523d033c8b9724dfa4bbc69f18bc0b53e7b 100755 (executable)
@@ -7,10 +7,9 @@ then
     echo "usage: ./distcheck.sh <builddir>"
     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