summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-05 11:24:10 +0200
committerErich Eckner <git@eckner.net>2017-09-05 11:24:10 +0200
commit5f97ea17aea802d2903323ce65f2a0c85239501c (patch)
tree8366db95871c319457faddbe5eb4f51bc2ed1997
parent273f4458866271eb7746377a10dd4d8ebdb98614 (diff)
downloadbuilder-5f97ea17aea802d2903323ce65f2a0c85239501c.tar.xz
bin/interpret-mail: add help text
-rwxr-xr-xbin/interpret-mail28
1 files changed, 28 insertions, 0 deletions
diff --git a/bin/interpret-mail b/bin/interpret-mail
index 908afa0..af63863 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -3,6 +3,34 @@
# shellcheck source=conf/default.conf
. "${0%/*}/../conf/default.conf"
+if [ $# -ne 0 ]; then
+ >&2 echo ''
+ >&2 echo 'usage: interpret-mail'
+ >&2 echo ' Read email from stdin and interpret / execute body.'
+ >&2 echo ''
+ >&2 echo ' The email needs a valid hashcash-stamp (>=20 bits)'
+ >&2 echo ' and valid encryption to buildmaster@archlinux32.org,'
+ >&2 echo ' as well as a valid gpg-signature from anyone on the'
+ >&2 echo ' list in "conf/admin-gpg-keys". This entry also'
+ >&2 echo ' determines what instructions are allowed.'
+ >&2 echo ''
+ >&2 echo ' Possible instructions are:'
+ >&2 echo ''
+ >&2 echo ' - "block: <state-file> <reason>":'
+ >&2 echo ' Block the given packge for the given reason.'
+ >&2 echo ''
+ >&2 echo ' - "stabilize: <package-file>":'
+ >&2 echo ' Move the given package from testing to stable.'
+ >&2 echo ''
+ >&2 echo ' - "unblock: <state-file>":'
+ >&2 echo ' Unblock the given packge.'
+ >&2 echo ''
+ >&2 echo ' - ALL: all of the above (only valid in'
+ >&2 echo ' "conf/admin-gpg-keys")'
+ >&2 echo ''
+ exit 1
+fi
+
tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT