diff options
author | unknown <lenz@mysql.com> | 2003-02-05 18:02:12 +0100 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2003-02-05 18:02:12 +0100 |
commit | 98b953fddf64b40369fc8fe6a5223672aed92c98 (patch) | |
tree | 6b356dfffda0e9d548447f30f5beb72cb507ed46 /Build-tools | |
parent | b7318885f41b8c79a34a88e054b174adbacfdcc2 (diff) | |
download | mariadb-git-98b953fddf64b40369fc8fe6a5223672aed92c98.tar.gz |
Small enhancements for Do-compile:
- add version number to build log files (e.g. Logs/build-4.1-standard.log)
- add host name and uname to Subject line of build failure mails
(e.g. "Subject: build(Linux): mysql-4.1-standard compilation failed")
-> Please merge with all other trees!
Build-tools/Do-compile:
Small enhancements:
- add version number to build log files (e.g. Logs/build-4.1-standard.log)
- add host name and uname to Subject line of build failure mails
(e.g. "Subject: build(Linux): mysql-4.1-standard compilation failed")
Diffstat (limited to 'Build-tools')
-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 6f11745d5b0..9b26a93d100 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"); @@ -558,9 +562,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"); |