summaryrefslogtreecommitdiff
path: root/Build-tools
diff options
context:
space:
mode:
authorlenz@mysql.com <>2004-07-13 21:03:30 +0200
committerlenz@mysql.com <>2004-07-13 21:03:30 +0200
commit894142b66e9a88300d18bae026f632bec8a16923 (patch)
treedbaf0fc7921cd69756807803c7dd8b9aaeea2d26 /Build-tools
parent0d5e1365b46b9937c0b39b243d80f064ea1a5d98 (diff)
downloadmariadb-git-894142b66e9a88300d18bae026f632bec8a16923.tar.gz
- Move checking of the MD5 checksumming to the correct place
- fix calling of my_md5sum
Diffstat (limited to 'Build-tools')
-rwxr-xr-xBuild-tools/Do-compile26
1 files changed, 14 insertions, 12 deletions
diff --git a/Build-tools/Do-compile b/Build-tools/Do-compile
index 40a5cf38121..1650e3d4a09 100755
--- a/Build-tools/Do-compile
+++ b/Build-tools/Do-compile
@@ -169,6 +169,17 @@ info("PATH is $ENV{PATH}");
log_timestamp();
+$md5_result= safe_system("perl $ENV{HOME}/my_md5sum -c ${opt_distribution}.md5");
+
+if ($md5_result != 0)
+{
+ abort("MD5 check failed for $opt_distribution!");
+}
+else
+{
+ info("SUCCESS: MD5 checks for $opt_distribution");
+}
+
if (-x "$host/bin/mysqladmin")
{
log_system("$host/bin/mysqladmin $mysqladmin_args -S $mysql_unix_port -s shutdown");
@@ -202,17 +213,6 @@ 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
@@ -332,7 +332,9 @@ $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}");
+$tar_file=~ /(mysql[^\/]*)\.(tar\.gz|tgz)/;
+$tar_file_lite= "$1.$2";
+system("cd $pwd/$host; perl $ENV{HOME}/my_md5sum $tar_file_lite > ${tar_file_lite}.md5");
#
# Unpack the binary distribution