You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2018/07/25 05:43:04 UTC
svn commit: r1836602 -
/directory/site/trunk/content/api/developer-guide.mdtext
Author: elecharny
Date: Wed Jul 25 05:43:04 2018
New Revision: 1836602
URL: http://svn.apache.org/viewvc?rev=1836602&view=rev
Log:
Updated the sign.sh script
Modified:
directory/site/trunk/content/api/developer-guide.mdtext
Modified: directory/site/trunk/content/api/developer-guide.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/api/developer-guide.mdtext?rev=1836602&r1=1836601&r2=1836602&view=diff
==============================================================================
--- directory/site/trunk/content/api/developer-guide.mdtext (original)
+++ directory/site/trunk/content/api/developer-guide.mdtext Wed Jul 25 05:43:04 2018
@@ -262,15 +262,6 @@ For the record, here is the script shell
echo -n "Signing: $FILE ... "
- # MD5
- if [ ! -f "$FILE.md5" ];
- then
- openssl md5 < "$FILE" | cut "-d " -f2 > "$FILE.md5"
- echo " - Generated '$FILE.md5'"
- else
- echo " - Skipped '$FILE.md5' (file already existing)"
- fi
-
# SHA1
if [ ! -f "$FILE.sha1" ];
then
@@ -280,6 +271,24 @@ For the record, here is the script shell
echo " - Skipped '$FILE.sha1' (file already existing)"
fi
+ # SHA-256
+ if [ ! -f "$FILE.sha256" ];
+ then
+ gpg -v --default-key "$DEFAULT_KEY" --print-md SHA256 "$FILE" > "$FILE".sha256
+ echo " - Generated '$FILE.sha256'"
+ else
+ echo " - Skipped '$FILE.sha256' (file already existing)"
+ fi
+
+ # SHA-512
+ if [ ! -f "$FILE.sha512" ];
+ then
+ gpg -v --default-key "$DEFAULT_KEY" --print-md SHA512 "$FILE" > "$FILE".sha512
+ echo " - Generated '$FILE.sha512'"
+ else
+ echo " - Skipped '$FILE.sha512' (file already existing)"
+ fi
+
# ASC
if [ ! -f "$FILE.asc" ];
then