Skip to content

Commit

Permalink
docs: Add SHA1 calculation onliner and fix sums (#724)
Browse files Browse the repository at this point in the history
This commit improves the documentation of the prcess for adding new
packages. It replaces two shell commands for SHA1 calculation with
one using a pipe. This allows you not to delete the downloaded
archive from the file system later.

The commit also corrects the SHA1 sums shown in the example.
  • Loading branch information
crvux authored Nov 28, 2023
1 parent 5f6ab17 commit a768595
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/creating-new/create/cmake.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,8 @@ Download release archive and calculate ``SHA1``:

.. code-block:: none
> wget https://github.com/hunterbox/hunter_box_1/archive/v1.0.0.tar.gz
> openssl sha1 v1.0.0.tar.gz
SHA1(v1.0.0.tar.gz)= c724e0f8a4ebc95cf7ba628b89b998b3b3c2697d
> wget -O- https://github.com/hunterbox/hunter_box_1/archive/v1.0.0.tar.gz | openssl sha1
SHA1(stdin)= 4fa7fe75629f148a61cedc6ba0bce74f177a6747
Add this information to ``cmake/projects/hunter_box_1/hunter.cmake`` file:

Expand All @@ -292,7 +291,7 @@ Add this information to ``cmake/projects/hunter_box_1/hunter.cmake`` file:
URL
"https://github.com/hunterbox/hunter_box_1/archive/v1.0.0.tar.gz"
SHA1
c724e0f8a4ebc95cf7ba628b89b998b3b3c2697d
4fa7fe75629f148a61cedc6ba0bce74f177a6747
)
hunter_pick_scheme(DEFAULT url_sha1_cmake)
Expand Down

0 comments on commit a768595

Please sign in to comment.