Repository: logging-chainsaw Updated Branches: refs/heads/master 8b31c23cb -> 042474aec
Add sign-artifacts.sh helper script Project: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/commit/042474ae Tree: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/tree/042474ae Diff: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/diff/042474ae Branch: refs/heads/master Commit: 042474aeca70a8b6d9846e26273c3b2957af6a67 Parents: 8b31c23 Author: Matt Sicker <boa...@gmail.com> Authored: Fri Nov 10 12:42:11 2017 -0600 Committer: Matt Sicker <boa...@gmail.com> Committed: Fri Nov 10 12:42:11 2017 -0600 ---------------------------------------------------------------------- sign-artifacts.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-chainsaw/blob/042474ae/sign-artifacts.sh ---------------------------------------------------------------------- diff --git a/sign-artifacts.sh b/sign-artifacts.sh new file mode 100755 index 0000000..fb4959e --- /dev/null +++ b/sign-artifacts.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# script to generate .asc, .md5, and .sha512 files for built artifacts + +if [[ $# -ne 1 ]] +then + echo "Usage: $0 gpg-key-id" + exit 1 +fi + +GPG_KEY="$1" + +cd target +for f in apache-chainsaw-*-bin.* apache-chainsaw-*-standalone.* +do + gpg --default-key="$GPG_KEY" --sign --detach-sign --armor "$f" + md5 "$f" >"$f.md5" + shasum -a 512 "$f" >"$f.sha512" +done