Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
twoliter: clean up prep dir between builds
Browse files Browse the repository at this point in the history
Otherwise, files that were present in an earlier build that have been
renamed or removed might still be in the prep directory, where they
will be added to the new archive.

Signed-off-by: Ben Cressey <[email protected]>
bcressey authored and webern committed Dec 7, 2023
1 parent 8658a7f commit c08da4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions twoliter/build.rs
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ fn main() {
let paths = Paths::new();
println!("cargo:rerun-if-changed={}", paths.data_input_dir.display());

let _ = fs::remove_dir_all(&paths.prep_dir);
fs::create_dir_all(&paths.prep_dir).expect(&format!(
"Unable to create directory '{}'",
paths.prep_dir.display()

0 comments on commit c08da4c

Please sign in to comment.