Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add shasum to check has on OSX #8707

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion HOWTO/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ also find the utilities needed for building the documentation.
but any version after that should work just as well.

You can also use `./otp_build download_ex_doc` to download the correct version
from github.
from github. One of the following dependencies are needed to check the documentation:

- sha256sum, or
- sha1sum, or
- shasum

How to Build and Install Erlang/OTP
-----------------------------------
Expand Down
7 changes: 6 additions & 1 deletion otp_build
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,13 @@ do_download_ex_doc ()
echo "The sha1sum check of $ERL_TOP/bin/ex_doc failed!" >&2
exit 1
fi
elif command -v shasum > /dev/null; then
if ! (cd "$ERL_TOP/make" && shasum -a 1 --status -c "ex_doc.sha1sum"); then
echo "The shasum check of $ERL_TOP/bin/ex_doc failed!" >&2
exit 1
fi
else
echo "Neither sha1sum nor sha256sum found to verify $ERL_TOP/bin/ex_doc" >&2
echo "Neither sha1sum nor sha256sum nor shasum found to verify $ERL_TOP/bin/ex_doc" >&2
echo "Please check manually that the correct ex_doc was downloaded." >&2
exit 1
fi
Expand Down
Loading