Skip to content

Commit

Permalink
Merge pull request #524 from climate-machine/ar/rm-example-jld2-output
Browse files Browse the repository at this point in the history
Delete leftover JLD2 files after running examples
  • Loading branch information
ali-ramadhan authored Nov 3, 2019
2 parents 4c7b58f + 3e2165c commit 91e5626
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,19 @@ makedocs(
)

deploydocs(repo = "github.com/climate-machine/Oceananigans.jl.git")

####
#### Delete leftover JLD2 files.
#### See: https://github.com/climate-machine/Oceananigans.jl/issues/509
####

const GENERATED_DIR = joinpath(@__DIR__, "build/generated")

@info "Deleting leftover JLD2 files..."
leftovers = filter(x -> occursin(".jld2", x), readdir(GENERATED_DIR))
for fname in leftovers
fpath = joinpath(GENERATED_DIR, fname)
rm(fpath, force=true)
@info "Deleted: $fpath"
end

0 comments on commit 91e5626

Please sign in to comment.