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