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
26609c49
Commit
26609c49
authored
Jun 23, 2004
by
mwagner@here.mwagner.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-copyright:
Fixed vim to expandtab's, retab'd code Fixed CWD bug in trim_the_fat()
parent
6cd530b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
24 deletions
+26
-24
Build-tools/mysql-copyright
Build-tools/mysql-copyright
+26
-24
No files found.
Build-tools/mysql-copyright
View file @
26609c49
...
...
@@ -104,11 +104,11 @@ sub main
copy
("
$WD
/Docs/MySQLEULA.txt
",
"
$destdir
");
# remove readline, bdb subdirs and update 'configure'
my
@extra_fat
=
('
cmd-line-utils/readline
',
'
bdb
');
my
@extra_fat
=
('
bdb
',
'
cmd-line-utils/readline
');
foreach
my
$fat
(
@extra_fat
)
{
&
trim_the_fat
(
$fat
);
&
trim_the_fat
(
$fat
);
}
# fix file copyrights
...
...
@@ -146,28 +146,30 @@ sub main
####
sub
trim_the_fat
{
my
$the_fat
=
shift
;
system
("
rm -rf
$destdir
/
${the_fat}
");
if
(
$win_flag
)
{
chdir
("
$destdir
")
or
die
"
Unable to change directory to
$destdir
!: $!
\n
";
}
else
{
chdir
("
$destdir
");
unlink
("
configure
")
or
die
"
Can't delete
$destdir
/configure: $!
\n
";
open
(
CONFIGURE
,"
<configure.in
")
or
die
"
Unable to open configure.in for read: $!
\n
";
undef
$/
;
my
$configure
=
<
CONFIGURE
>
;
close
(
CONFIGURE
);
$configure
=~
s|${the_fat}/Makefile dnl\n?||g
;
open
(
CONFIGURE
,"
>configure.in
")
or
die
"
Unable to open configure.in for write: $!
\n
";
print
CONFIGURE
$configure
;
close
(
CONFIGURE
);
`
autoconf
`;
die
"
'./configure' was not produced!
"
unless
(
-
f
"
configure
")
}
my
$the_fat
=
shift
;
my
$cwd
=
getcwd
();
system
("
rm -rf
$destdir
/
${the_fat}
");
if
(
$win_flag
)
{
chdir
("
$destdir
")
or
die
"
Unable to change directory to
$destdir
!: $!
\n
";
}
else
{
chdir
("
$destdir
");
unlink
("
configure
")
or
die
"
Can't delete
$destdir
/configure: $!
\n
";
open
(
CONFIGURE
,"
<configure.in
")
or
die
"
Unable to open configure.in for read: $!
\n
";
undef
$/
;
my
$configure
=
<
CONFIGURE
>
;
close
(
CONFIGURE
);
$configure
=~
s|${the_fat}/Makefile dnl\n?||g
;
open
(
CONFIGURE
,"
>configure.in
")
or
die
"
Unable to open configure.in for write: $!
\n
";
print
CONFIGURE
$configure
;
close
(
CONFIGURE
);
`
autoconf
`;
die
"
'./configure' was not produced!
"
unless
(
-
f
"
configure
");
chdir
("
$cwd
");
}
}
...
...
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