Skip to content

Commit

Permalink
tools: make detached SHASUM .sig file for releases
Browse files Browse the repository at this point in the history
PR-URL: #9071
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
rvagg authored and Myles Borins committed Oct 19, 2016
1 parent 955bbf8 commit c74d3a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function sign {
scp ${webuser}@${webhost}:${shapath} ${tmpdir}/${shafile}

gpg --default-key $gpgkey --clearsign --digest-algo SHA256 ${tmpdir}/${shafile}
gpg --default-key $gpgkey --detach-sign --digest-algo SHA256 ${tmpdir}/${shafile}

echo "Wrote to ${tmpdir}/"

Expand All @@ -117,7 +118,7 @@ function sign {
fi

if [ "X${yorn}" == "Xy" ]; then
scp ${tmpdir}/${shafile} ${tmpdir}/${shafile}.asc ${webuser}@${webhost}:${shadir}/
scp ${tmpdir}/${shafile} ${tmpdir}/${shafile}.asc ${tmpdir}/${shafile}.sig ${webuser}@${webhost}:${shadir}/
break
fi
done
Expand Down

0 comments on commit c74d3a7

Please sign in to comment.