]> jfr.im git - irc/thales.git/blame - ReportUsage.sh
added MysqlPrefix variables
[irc/thales.git] / ReportUsage.sh
CommitLineData
2ace9480 1#!/bin/sh
2
beff48bb 3echo "You selected an ircd which isn't much used. I'd like to collect some"
4echo "infos about who is using thales with this ircd. It will only take a"
5echo "few seconds to answer the questions."
2ace9480 6echo
beff48bb 7echo "Do you agree to answer them now [Y/N] ? (You don't need to answer them,"
8echo "and it won't affect your usage of GNU Thales) "
2ace9480 9echo -n "[Y] > "
10read answer
11if [ "X$answer" = "XN" -o "X$answer" = "Xn" ]; then
12 exit 0
13fi
14
15echo "On which network are you using thales ? Please give exact name, so that I"
16echo "can eventually connect and say hi !"
17echo -n "> "
18read network
19echo
beff48bb 20echo "Which ircd are you using (please give the exact version number) ?"
2ace9480 21echo -n "> "
22read ircd
23echo
24echo "What is the main language used on your network ?"
25echo -n "> "
26read lang
27echo
28echo "What is the approximate number of users on your network ?"
29echo -n "> "
30read size
31echo
32echo "What is your email address ? (you don't _need_ to answer this one)"
33echo -n "> "
34read email
35
36version=`cat configure.in |grep AM_INIT_AUTOMAKE\(thales |sed -e 's/.*thales, \(.*\))/\1/'`
37cat > mail.txt << ENDOFFILE
38THALES USAGE
39
40Network : $network
41Ircd : $ircd
42Language : $lang
43Size : $size
44Email : $email
45Version : $version
46
4f289b89 47Please mail this file to thales-misc@gnu.org
2ace9480 48ENDOFFILE
49
50echo "OK, that's all. Here are the results, saved in mail.txt :"
51echo "--------------"
52cat mail.txt
53echo "--------------"
54echo "Do you want me to mail the file using the standard unix 'mail'"
55echo "command ? [Y/N]"
56echo -n "[Y] > "
57read answer
58if [ "X$answer" = "XN" -o "X$answer" = "Xn" ]; then
4f289b89 59 echo "OK, please mail the content of mail.txt to thales-misc@gnu.org"
2ace9480 60 exit 0
61fi
62
4f289b89 63cat mail.txt |mail -s "thales usage" thales-misc@gnu.org
2ace9480 64echo "mail sent, thanks !"
65rm mail.txt
66echo