Debian Codegraph @

xbin/notify

raw
1 #!/bin/sh
2
3 # Send in a notification about successful compilation, which may
4 # help others, and help in determining on which machines and
5 # levels of the OS compilation has been successful.
6
7 if [ -f /bin/mail ] ; then
8
9 echo GCL `cat majvers`.`cat minvers` Machine: `cat machine` > tmpx
10 ls -l h/config.h >> tmpx
11 echo $@ >> tmpx
12
13 if fgrep gcc tmpx > /dev/null ; then
14 gcc -v 2>> tmpx
15 fi
16
17 if [ -f /etc/motd ] ; then
18 cat /etc/motd | sed -e "2,10000d" >> tmpx ;
19 fi
20 # if you are wfs dont bother mailing
21 if [ "${HOME}" = "/home/wfs" ] ; then true ; else
22 cat tmpx | /bin/mail [email protected]
23 fi
24 fi
25
26