Commit cda9b117 authored by Benoit Daloze's avatar Benoit Daloze
Browse files

Make sure to install to a clean prefix

* Otherwise, existing files in the prefix could easily conflict and
  potentially cause very hard to debug errors.
* This is particularly important for *-dev builds which might be
  repeatedly installed to the same directory.
parent 9449b51a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -756,6 +756,8 @@ remove_windows_files() {
}

build_package_copy() {
  # Make sure there are no leftover files in $PREFIX_PATH
  rm -rf "$PREFIX_PATH"
  mkdir -p "$PREFIX_PATH"
  cp -fR . "$PREFIX_PATH"
}