Skip to content

Commit fe49207

Browse files
committed
Make sure build dir is clean before building
1 parent c56a7dc commit fe49207

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build_pkg.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ GITREV=$(git log -n1 --format="%H" -- "${THISDIR}")
3434
GITREVINDEX=$(git rev-list --count "$GITREV")
3535
VERSION="${VERSION}.${GITREVINDEX}"
3636

37-
# make sure we have a build directory to use
37+
# make sure we have a clean build directory to use
3838
BUILD_DIR="${THISDIR}/build"
39-
if [ ! -d "${BUILD_DIR}" ] ; then
40-
mkdir "${BUILD_DIR}"
41-
fi
39+
rm -rf "${BUILD_DIR}"
40+
mkdir -p "${BUILD_DIR}"
4241

4342
# build the dylib
4443
echo "Building ${TOOL}.plugin..."

0 commit comments

Comments
 (0)