1#!/usr/bin/env sh 2set -ex 3 4gpg --batch --gen-key <<-EOF 5%echo Generating a standard key 6Key-Type: DSA 7Key-Length: 1024 8Subkey-Type: ELG-E 9Subkey-Length: 1024 10Name-Real: Meshuggah Rocks 11Name-Email: meshuggah@example.com 12Expire-Date: 0 13# Do a commit here, so that we can later print "done" :-) 14%commit 15%echo done 16EOF