~ubuntu-branches/debian/sid/bitcoin/sid

« back to all changes in this revision

Viewing changes to contrib/verify-commits/gpg.sh

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2015-07-29 15:45:52 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20150729154552-p5t8q38o0ekh1f09
Tags: 0.11.0-1
* New upstream release (Closes: #793622)
  - build on all archs, big endian is now supported
* Updated symbols file
* Added bitcoin-cli.1 manpage from contrib/debian/manpages
* Updated debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
INPUT=$(</dev/stdin)
 
3
VALID=false
 
4
IFS=$'\n'
 
5
for LINE in $(echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null); do
 
6
        case "$LINE" in "[GNUPG:] VALIDSIG"*)
 
7
                while read KEY; do
 
8
                        case "$LINE" in "[GNUPG:] VALIDSIG $KEY "*) VALID=true;; esac
 
9
                done < ./contrib/verify-commits/trusted-keys
 
10
        esac
 
11
done
 
12
if ! $VALID; then
 
13
        exit 1
 
14
fi
 
15
echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null