Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Sep 13, 2023
1 parent 88078bb commit 2d04f8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FranklinTemplates"
uuid = "3a985190-f512-4703-8d38-2a7944ed5916"
authors = ["Thibaut Lienart <[email protected]>"]
version = "0.10.0"
version = "0.10.1"

[deps]
LiveServer = "16fef848-5104-11e9-1b77-fb7a48bbb589"
Expand Down
11 changes: 10 additions & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,16 @@ function filecmp(path1::AbstractString, path2::AbstractString)
if !(isfile(stat1) && isfile(stat2)) || filesize(stat1) != filesize(stat2)
return false
end
stat1 == stat2 && return true # same file

compare_buffers(b1, b2, n) = begin
if VERSION > v"1.9"
Base.cmp(b1, b2)
else
Base._memcmp(b1, b2, n)
end
end

stat1 == stat2 && return true # same fileq
open(path1, "r") do file1
open(path2, "r") do file2
buf1 = Vector{UInt8}(undef, 32768)
Expand Down

2 comments on commit 2d04f8d

@tlienart
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/91327

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.10.1 -m "<description of version>" 2d04f8dd4093b19bad8a027c12f7e4cb7192cf3a
git push origin v0.10.1

Please sign in to comment.