Browse Source

contrib: update tarball script to delete previous build directory

Nathalie Furmento 7 years ago
parent
commit
0fc18e3b38
1 changed files with 2 additions and 1 deletions
  1. 2 1
      contrib/ci.inria.fr/job-0-tarball.sh

+ 2 - 1
contrib/ci.inria.fr/job-0-tarball.sh

@@ -4,7 +4,8 @@ export PKG_CONFIG_PATH=/home/ci/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
 export LD_LIBRARY_PATH=/home/ci/usr/local/lib:$LD_LIBRARY_PATH
 
 ./autogen.sh
-rm -rf build && mkdir build && cd build
+if test -d build ; then chmod -R 777 build && rm -rf build ; fi
+mkdir build && cd build
 ../configure
 make V=1
 make dist