From a768595d72cef359e37d8bb498a2650ec4bc0a13 Mon Sep 17 00:00:00 2001 From: Alexander Voronov <64746596+crvux@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:42:43 +0300 Subject: [PATCH] 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. --- docs/creating-new/create/cmake.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/creating-new/create/cmake.rst b/docs/creating-new/create/cmake.rst index 5d8e4f9753..4edaf6dfb1 100644 --- a/docs/creating-new/create/cmake.rst +++ b/docs/creating-new/create/cmake.rst @@ -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: @@ -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)