]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
win32*.sh: cleanup dependency build dir when targetting Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 27 May 2020 10:23:45 +0000 (10:23 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 9 Dec 2020 18:01:02 +0000 (18:01 +0000)
We're using a separate dir when building Ceph dependencies for
Windows. The build script isn't entirely idempotent ATM, so the
easiest thing to do is to just cleanup this dir when rebuilding
dependencies.

If *all* dependencies have been successfully built, this step is
skipped by default.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
win32_deps_build.sh

index 5b53891ce548953c9461d730db863f10bd13c916..c1dfd7433fb0c8bd09cb9d36cc9d9f1c937eb9b0 100755 (executable)
@@ -51,6 +51,11 @@ function _make() {
   make -j $NUM_WORKERS $@
 }
 
+if [[ -d $DEPS_DIR ]]; then
+    echo "Cleaning up dependency build dir: $DEPS_DIR"
+    rm -rf $DEPS_DIR
+fi
+
 mkdir -p $DEPS_DIR
 mkdir -p $depsToolsetDir
 mkdir -p $depsSrcDir