diff options
author | unknown <mwagner@here.mwagner.org> | 2004-07-08 14:06:30 -0500 |
---|---|---|
committer | unknown <mwagner@here.mwagner.org> | 2004-07-08 14:06:30 -0500 |
commit | 4acc0869c408c1953de7b0809688fecfa0ddcd2b (patch) | |
tree | ec9de77f85587d3572bbfdb5feb69d18e9f613bf | |
parent | 85c57e7048362f91b42015f41cc9831673f288ee (diff) | |
parent | 9c7e5eddca8fb3ef558c69c4fcb053d13352b42a (diff) | |
download | mariadb-git-4acc0869c408c1953de7b0809688fecfa0ddcd2b.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into here.mwagner.org:/Volumes/BK/mysql-4.0
-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 d79fd1f0b65..ecf5316c867 100755 --- a/Build-tools/Do-compile +++ b/Build-tools/Do-compile @@ -202,6 +202,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 @@ -320,6 +331,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 # @@ -633,7 +647,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 |