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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
70a539b0
Commit
70a539b0
authored
Feb 08, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: scripts/dynconfig: Minor cleanup (spelling and formatting).
parent
23961f57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
scripts/dynconfig
scripts/dynconfig
+14
-13
No files found.
scripts/dynconfig
View file @
70a539b0
#!/usr/bin/perl -w
#!/usr/bin/perl -w
#
# (C)opyright Oracle/Innobase Oy. 2007.
#
...
...
@@ -11,9 +11,12 @@
#
# RETURNS: 0 OK
use
strict
;
use
warnings
;
my
$buffer
;
# These are the en
ing
es whose config parameters we need to remove.
# These are the en
gin
es whose config parameters we need to remove.
my
@engines
=
(
"
ndbcluster
",
"
innodb
",
...
...
@@ -25,7 +28,7 @@ my @engines = (
"
embedded-server
",
"
partition
"
);
# Map the following variables to something else. If you want to remove any
# parameters from the configure command line, simply add an "" value to the
# hashtable below.
...
...
@@ -103,8 +106,7 @@ sub squeeze($) {
}
if
(
$#ARGV
<
0
)
{
print
"
usage: <patch/to/mysqlbug> [options e.g. CC=xxx]
\n
";
exit
(
1
);
die
"
usage: $0 <path/to/mysqlbug> [options e.g. CC=gcc CXX=gcc]
\n
";
}
open
(
F
,
$ARGV
[
0
])
||
...
...
@@ -117,12 +119,10 @@ my @matched = grep(/^CONFIGURE_LINE=/, split(/\n/, $buffer));
# Check for no match
if
(
$#matched
==
-
1
)
{
print
"
CONFIGURE_LINE= not found in :
$ARGV
[0]
\n
";
exit
(
1
);
die
"
CONFIGURE_LINE= not found in :
$ARGV
[0]
\n
";
# Check if more than one line matched
}
elsif
(
$#matched
>
0
)
{
printf
"
Error too many matches found.
\n
";
exit
(
1
);
die
"
Error: $#matched matches found.
\n
";
}
# Since CONFIGURE_LINE is an environment variable we extract the value,
...
...
@@ -153,7 +153,7 @@ if (defined($ENV{"MYSQL_CONFIG_DEL"})) {
}
}
my
@arr
=
split
(
/'/
,
$configure
);
my
@arr
=
split
(
"
'
"
,
$configure
);
foreach
my
$param
(
@arr
)
{
...
...
@@ -172,7 +172,7 @@ foreach my $param (@arr) {
$param
=
map_param
(
$param
);
if
(
length
(
$param
)
>
0
)
{
print
"
'
$param
'
";
print
"
'
$param
'
";
}
}
...
...
@@ -186,9 +186,10 @@ if (defined($ENV{"MYSQL_CONFIG_ADD"})) {
if
(
$param
=~
/^'(.+)'$/
)
{
$param
=
$1
;
}
print
"
'
$param
'
";
print
"
'
$param
'
";
}
}
exit
(
0
)
;
print
"
\n
"
;
exit
(
0
);
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