From 332ce704f6b1d5821ec13b47669ae1adbd77e70b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 8 Mar 2008 00:03:58 +0100 Subject: [PATCH] Add report_success.sh --- tools/report_success.sh | 63 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 tools/report_success.sh diff --git a/tools/report_success.sh b/tools/report_success.sh new file mode 100755 index 0000000..82a6dc6 --- /dev/null +++ b/tools/report_success.sh @@ -0,0 +1,63 @@ +#!/bin/sh +# +# 2008 Nico Schottelius (nico-ccollect at schottelius.org) +# +# This file is part of ccollect. +# +# ccollect is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ccollect is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with ccollect. If not, see . +# +# Sends feedback +# + +subject="==> success: ccollect" +to="nico-ccollect-success" +host="schottelius.org" +fullto="${to}@${host}" + +software="ccollect" +author="Nico Schottelius" +info="$(uname -s -v -r -m)" + +echo "Reporting success for $software to ${author}:" +echo "-----------------" +echo -n "Your name (leave free for anonymous): " +read name +echo -n "Your email (leave free for anonymous): " +read email +echo -n "Comment (leave free for no comment): " +read comment + +echo "" +echo "The following information will be send to ${author}:" +echo "" + +cat << eof +Name: $name (will be used to contact you and kept secret) +E-Mail: $email (will be used to contact you and kept secret) +Comment: $comment +Info: $info + +eof + +echo -n "Is it ok to send out that mail (press enter to send or ctrl-c to abort)? " +read yes + +cat << eof | mail -s "$subject" "$fullto" +Name: $name (will be used to contact you and kept secret) +E-Mail: $email (will be used to contact you and kept secret) +Comment: $comment +Info: $info +eof + +echo "Send. Thank you for your feedback."