Skip to content

Commit a768595

Browse files
authored
docs: Add SHA1 calculation onliner and fix sums (#724)
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.
1 parent 5f6ab17 commit a768595

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/creating-new/create/cmake.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,8 @@ Download release archive and calculate ``SHA1``:
268268

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

@@ -292,7 +291,7 @@ Add this information to ``cmake/projects/hunter_box_1/hunter.cmake`` file:
292291
URL
293292
"https://github.com/hunterbox/hunter_box_1/archive/v1.0.0.tar.gz"
294293
SHA1
295-
c724e0f8a4ebc95cf7ba628b89b998b3b3c2697d
294+
4fa7fe75629f148a61cedc6ba0bce74f177a6747
296295
)
297296
298297
hunter_pick_scheme(DEFAULT url_sha1_cmake)

0 commit comments

Comments
 (0)