diff options
author | unknown <monty@mysql.com> | 2004-07-09 02:29:28 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-07-09 02:29:28 +0300 |
commit | 53ca595451d53fccd60b1112c444e5278021c1ee (patch) | |
tree | d39c3dfa90aad2f93012b09513ff0ba42c1aa0cb /Build-tools/Do-compile | |
parent | 661b8165eced19f1943aeee1b166ff10191ab037 (diff) | |
parent | ee9890162e2a2b44f8b09c14b0a22ba9d086df95 (diff) | |
download | mariadb-git-53ca595451d53fccd60b1112c444e5278021c1ee.tar.gz |
Merge with 4.0 to get bug fixes
Build-tools/Bootstrap:
Auto merged
Build-tools/Do-compile:
Auto merged
mysql-test/r/lowercase_table2.result:
Auto merged
mysql-test/r/system_mysql_db.result:
Auto merged
mysql-test/r/system_mysql_db_refs.result:
Auto merged
mysql-test/t/system_mysql_db_fix-master.opt:
Auto merged
mysql-test/t/system_mysql_db.test:
Auto merged
Diffstat (limited to 'Build-tools/Do-compile')
-rwxr-xr-x | Build-tools/Do-compile | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/Build-tools/Do-compile b/Build-tools/Do-compile index cf466ef5848..f47ae794b00 100755 --- a/Build-tools/Do-compile +++ b/Build-tools/Do-compile @@ -204,6 +204,17 @@ if ($opt_stage == 0) safe_cd($host); if ($opt_stage == 0 && ! $opt_use_old_distribution) { + $md5_result= safe_system("./my_md5sum -c ${opt_distribution}.md5"); + + if ($md5_result != 0) + { + abort("MD5 failed for $opt_distribution!"); + } + else + { + info("SUCCESS: MD5 checks for $opt_distribution"); + } + safe_system("gunzip < $opt_distribution | $tar xf -"); # Fix file times; This is needed because the time for files may be @@ -331,6 +342,9 @@ if ($opt_stage <= 3) $tar_file=<$pwd/$host/mysql*.t*gz>; abort ("Could not find tarball!") unless ($tar_file); +# Generate the MD5 for the binary distribution +safe_system("./my_md5sum $tar_file > ${tar_file}.md5}"); + # # Unpack the binary distribution # @@ -660,7 +674,10 @@ sub safe_system my($com,$res)=@_; print LOG "$com\n"; print "$host: $com\n" if ($opt_debug); - system("$com >> $log 2>&1") && abort("error: Couldn't execute command, error: " . ($? / 256)); + my $result= system("$com >> $log 2>&1"); + abort("error: Couldn't execute command, error: " . ($? / 256)) unless $result == 0; + + return $result; } sub check_system |