Mercurial > repos > public > sbplib_julia
annotate update_manifest.jl @ 2020:7f7207b9bd6c feature/grids/multiblock_grids
Add constructor tests for 2d grids and using matrix for the grid collection
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 12 Mar 2025 10:48:58 +0100 |
| parents | 608a24a7b13b |
| children |
| rev | line source |
|---|---|
|
1675
61422abd17a4
Add script for updating dependencies
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
1 using Pkg |
|
61422abd17a4
Add script for updating dependencies
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
2 |
|
1984
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
3 function update_and_log(root, d) |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
4 printstyled("Updating '$d'"; color=:cyan, bold=true) |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
5 println() |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
6 dp = joinpath(root, d) |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
7 |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
8 update_directory(dp) |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
9 println() |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
10 end |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
11 |
|
1675
61422abd17a4
Add script for updating dependencies
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
12 function update_directory(d) |
|
61422abd17a4
Add script for updating dependencies
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
13 Pkg.activate(d) |
|
61422abd17a4
Add script for updating dependencies
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
14 Pkg.update() |
|
61422abd17a4
Add script for updating dependencies
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
15 end |
|
61422abd17a4
Add script for updating dependencies
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
16 |
|
1984
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
17 root = @__DIR__ |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
18 update_and_log(root, ".") |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
19 update_and_log(root, "benchmark") |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
20 update_and_log(root, "docs") |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
21 update_and_log(root, "test") |
|
608a24a7b13b
Make the output of update_manifest.jl nicer
Jonatan Werpers <jonatan@werpers.com>
parents:
1675
diff
changeset
|
22 |
