Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
894142b6
Commit
894142b6
authored
Jul 13, 2004
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Move checking of the MD5 checksumming to the correct place
- fix calling of my_md5sum
parent
0d5e1365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
Build-tools/Do-compile
Build-tools/Do-compile
+14
-12
No files found.
Build-tools/Do-compile
View file @
894142b6
...
@@ -169,6 +169,17 @@ info("PATH is $ENV{PATH}");
...
@@ -169,6 +169,17 @@ info("PATH is $ENV{PATH}");
log_timestamp
();
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
")
if
(
-
x
"
$host
/bin/mysqladmin
")
{
{
log_system
("
$host
/bin/mysqladmin
$mysqladmin_args
-S
$mysql_unix_port
-s shutdown
");
log_system
("
$host
/bin/mysqladmin
$mysqladmin_args
-S
$mysql_unix_port
-s shutdown
");
...
@@ -202,17 +213,6 @@ if ($opt_stage == 0)
...
@@ -202,17 +213,6 @@ if ($opt_stage == 0)
safe_cd
(
$host
);
safe_cd
(
$host
);
if
(
$opt_stage
==
0
&&
!
$opt_use_old_distribution
)
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 -
");
safe_system
("
gunzip <
$opt_distribution
|
$tar
xf -
");
# Fix file times; This is needed because the time for files may be
# Fix file times; This is needed because the time for files may be
...
@@ -332,7 +332,9 @@ $tar_file=<$pwd/$host/mysql*.t*gz>;
...
@@ -332,7 +332,9 @@ $tar_file=<$pwd/$host/mysql*.t*gz>;
abort
("
Could not find tarball!
")
unless
(
$tar_file
);
abort
("
Could not find tarball!
")
unless
(
$tar_file
);
# Generate the MD5 for the binary distribution
# 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
# Unpack the binary distribution
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment