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
2f34b764
Commit
2f34b764
authored
Dec 13, 2003
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Some small Perl enhancements for Do-compile: use more Perl builtins.
parent
a8516591
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Build-tools/Do-compile
Build-tools/Do-compile
+5
-3
No files found.
Build-tools/Do-compile
View file @
2f34b764
#!/usr/bin/perl -w
use
File::
Basename
;
use
Getopt::
Long
;
use
Sys::
Hostname
;
@config_options
=
();
@make_options
=
();
...
...
@@ -75,7 +77,7 @@ if (@config_env > 0)
$opt_config_env
=
join
("
",
@config_env
);
}
chomp
(
$host
=
`
hostname
`
);
$host
=
hostname
(
);
chomp
(
$uname
=
`
uname
`);
$full_host_name
=
$host
;
$connect_option
=
(
$opt_tcpip
?
"
--host=
$host
"
:
"");
...
...
@@ -83,7 +85,7 @@ $host =~ /^([^.-]*)/;
$host
=
$1
.
$opt_suffix
;
$email
=
"
$opt_user
\
@mysql
.com
";
chomp
(
$pwd
=
`
pwd
`);
$VER
=
`
basename
$opt_distribution
`;
chop
$VER
;
$VER
=
basename
(
$opt_distribution
)
;
$VER
=~
/mysql.*-([1-9]\.[0-9]{1,2}\.[0-9]{1,2}.*)\.tar*/
;
$version
=
$1
;
(
$major
,
$minor
,
$release
)
=
split
(
/\./
,
$version
);
$log
=
"
$pwd
/Logs/
$host
-
$major
.
$minor$opt_version_suffix
.log
";
...
...
@@ -110,7 +112,7 @@ if (defined($gcc_version) && ! $opt_config_env)
$new_opt_tmp
=
0
;
if
(
$opt_tmp
)
{
if
(
!
-
d
$opt_tmp
)
unless
(
-
d
$opt_tmp
)
{
safe_system
("
mkdir
$opt_tmp
");
$new_opt_tmp
=
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