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
c4feaafd
Commit
c4feaafd
authored
Mar 07, 2005
by
joerg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid empty build (failure) mails on Solaris (backport from 4.1).
parent
4e136e8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
Build-tools/Do-compile
Build-tools/Do-compile
+10
-6
No files found.
Build-tools/Do-compile
View file @
c4feaafd
...
...
@@ -617,16 +617,20 @@ sub abort
if
(
$opt_user
)
{
$mail_header_file
=
"
$opt_tmp
/do-command.$$
";
open
(
TMP
,"
>
$mail_header_file
");
# Take the last 40 lines of the build log
open
(
LOG
,
"
$log
")
or
die
$!
;
my
@log
=
<
LOG
>
;
close
LOG
;
splice
@log
=>
0
,
-
40
;
my
$mail_file
=
"
$opt_tmp
/do-command.$$
";
open
(
TMP
,"
>
$mail_file
")
or
die
$!
;
print
TMP
"
From: mysqldev
\
@
$full_host_name
\n
";
print
TMP
"
To:
$email
\n
";
print
TMP
"
Subject:
$host
(
$uname
):
$ver$opt_version_suffix
compilation failed
\n\n
";
print
TMP
@log
;
close
TMP
;
system
("
tail -n 40
$log
>
$log
.mail
");
system
("
cat
$mail_header_file
$log
.mail |
$sendmail
-t -f
$email
");
unlink
(
$mail_header_file
);
unlink
("
$log
.mail
");
system
("
$sendmail
-t -f
$email
<
$mail_file
");
unlink
(
$mail_file
);
}
exit
1
;
}
...
...
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