diff options
author | unknown <serg@sergbook.mysql.com> | 2003-02-10 14:56:30 +0100 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2003-02-10 14:56:30 +0100 |
commit | 2f10da3d81a70db339036a16a603264d47b570fa (patch) | |
tree | e05f911353baf9881b79d15c204e8fadcad21c19 /Build-tools/Do-compile | |
parent | 6938e7d1f055ab02a088e4f78e7bd5e4f061c9e9 (diff) | |
parent | 81dd16a1fa350cb96e72ef8da12dde8081e35215 (diff) | |
download | mariadb-git-2f10da3d81a70db339036a16a603264d47b570fa.tar.gz |
Merge sergbook.mysql.com:/usr/home/serg/Abk/mysql
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
Build-tools/Do-compile:
Auto merged
bdb/dist/configure.in:
Auto merged
scripts/mysqlhotcopy.sh:
Auto merged
sql/ha_innodb.cc:
Auto merged
sql/sql_acl.cc:
Auto merged
Diffstat (limited to 'Build-tools/Do-compile')
-rwxr-xr-x | Build-tools/Do-compile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Build-tools/Do-compile b/Build-tools/Do-compile index 1ab9835f758..add2ac86c81 100755 --- a/Build-tools/Do-compile +++ b/Build-tools/Do-compile @@ -75,13 +75,17 @@ if (@config_env > 0) } chomp($host=`hostname`); +chomp($uname=`uname`); $full_host_name=$host; $connect_option= ($opt_tcpip ? "--host=$host" : ""); $host =~ /^([^.-]*)/; $host=$1 . $opt_suffix; $email="$opt_user\@mysql.com"; -$pwd = `pwd`; chomp($pwd); -$log="$pwd/Logs/$host$opt_version_suffix.log"; +chomp($pwd = `pwd`); +$VER= `basename $opt_distribution`; chop $VER; +$VER=~ /mysql.*-([1-9]\.[0-9]{1,2}\.[0-9]{1,2}.*)\.tar*/; $version=$1; +($major, $minor, $release) = split(/\./,$version); +$log="$pwd/Logs/$host-$major.$minor$opt_version_suffix.log"; $opt_distribution =~ /(mysql[^\/]*)\.tar/; $ver=$1; $gcc_version=which("gcc"); @@ -559,9 +563,9 @@ sub abort { $mail_header_file="$opt_tmp/do-command.$$"; open(TMP,">$mail_header_file"); - print TMP "From: mysql\@$full_host_name\n"; + print TMP "From: mysqldev\@$full_host_name\n"; print TMP "To: $email\n"; - print TMP "Subject: $ver$opt_version_suffix compilation failed\n\n"; + print TMP "Subject: $host($uname): $ver$opt_version_suffix compilation failed\n\n"; close TMP; system("tail -n 40 $log > $log.mail"); system("cat $mail_header_file $log.mail | $sendmail -t -f $email"); |