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
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
Show 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
...
...
@@ -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
",
...
...
@@ -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