4
ADDR="sigscheme-ja@googlegroups.com"
6
TMPFILE=$TMPDIR/sigscheme-report.$$
9
OPTS="--enable-euccn --enable-eucjp --enable-euckr --enable-sjis"
10
#OPTS="$OPTS --enable-maintainer-mode"
12
for cmd in gmake gnumake make; do
13
if $cmd --version 2>/dev/null | grep -q GNU; then
19
if test "x$MAKE" != x && $PERL -v >/dev/null; then
20
(./configure $OPTS && $MAKE clean >/dev/null && $MAKE >/dev/null \
21
&& $MAKE check && echo 'all tests passed') 2>&1 | tee $TMPFILE
22
if grep -q 'all tests passed' $TMPFILE; then
27
pkg=`perl -ne 'print $1 if /^Package:\s+(.+)$/' $TMPFILE`
28
host=`perl -ne 'print $1 if /^host \(compile for\):\s+(.+)$/' $TMPFILE`
29
compiler=`perl -ne 'print $1 if /^Compiler:\s+(.+)$/' $TMPFILE`
30
compiler_ver=`perl -ne 'print $1 if /^Compiler version:\s+(.+)$/' $TMPFILE`
32
cat >report.mail <<EOT
34
Subject: ${result}: ${pkg} ${host} ${compiler} ${compiler_ver}
38
#cat $TMPFILE >>report.mail
39
# Hide reporter's private information.
40
sed -e "s/\\/${MYNAME}\\//\\/<username>\\//g" $TMPFILE >>report.mail
44
echo "File 'report.mail' has been created. Please send it to us."
47
echo "GNU make or Perl not found. Install them."