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
6cd530b3
Commit
6cd530b3
authored
Jun 23, 2004
by
mwagner@here.mwagner.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-copyright:
Cleaned-up trim_the_fat()
parent
b793142c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
21 deletions
+39
-21
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
Build-tools/mysql-copyright
Build-tools/mysql-copyright
+38
-21
No files found.
BitKeeper/etc/logging_ok
View file @
6cd530b3
...
@@ -116,6 +116,7 @@ mskold@mysql.com
...
@@ -116,6 +116,7 @@ mskold@mysql.com
msvensson@build.mysql.com
msvensson@build.mysql.com
mwagner@cash.mwagner.org
mwagner@cash.mwagner.org
mwagner@evoq.mwagner.org
mwagner@evoq.mwagner.org
mwagner@here.mwagner.org
mwagner@work.mysql.com
mwagner@work.mysql.com
mydev@mysql.com
mydev@mysql.com
mysql@home.(none)
mysql@home.(none)
...
...
Build-tools/mysql-copyright
View file @
6cd530b3
...
@@ -102,27 +102,13 @@ sub main
...
@@ -102,27 +102,13 @@ sub main
# exist in the new mysql distributions, but let's be sure..
# exist in the new mysql distributions, but let's be sure..
unlink
("
$destdir
/PUBLIC
",
"
$destdir
/README
");
unlink
("
$destdir
/PUBLIC
",
"
$destdir
/README
");
copy
("
$WD
/Docs/MySQLEULA.txt
",
"
$destdir
");
copy
("
$WD
/Docs/MySQLEULA.txt
",
"
$destdir
");
# remove readline subdir and update configure accordingly
# remove readline, bdb subdirs and update 'configure'
system
("
rm -rf
$destdir
/cmd-line-utils/readline
");
my
@extra_fat
=
('
cmd-line-utils/readline
',
'
bdb
');
if
(
$win_flag
)
{
chdir
("
$destdir
")
or
(
print
"
$! Unable to change directory to
$desdir
!
\n
"
&&
exit
(
0
));
foreach
my
$fat
(
@extra_fat
)
}
else
{
{
chdir
("
$destdir
");
&
trim_the_fat
(
$fat
);
unlink
("
configure
")
or
die
"
Can't delete
$destdir
/configure: $!
\n
";
open
(
CONFIGURE
,"
<configure.in
")
or
die
"
$! Unable to open configure.in to read from!
\n
";
undef
$/
;
my
$configure
=
<
CONFIGURE
>
;
close
(
CONFIGURE
);
$configure
=~
s|cmd\-line\-utils/readline/Makefile dnl\n?||g
;
open
(
CONFIGURE
,"
>configure.in
")
or
die
"
$! Unable to open configure.in to write to!
\n
";
print
CONFIGURE
$configure
;
close
(
CONFIGURE
);
`
autoconf
`;
if
(
!
-
f
"
configure
")
{
print
"
\"
./configure
\"
was not produced, exiting!
\n
";
exit
(
0
);
}
}
}
# fix file copyrights
# fix file copyrights
...
@@ -154,6 +140,37 @@ sub main
...
@@ -154,6 +140,37 @@ sub main
exit
(
0
);
exit
(
0
);
}
}
####
#### This function will remove unwanted parts of a src tree for the mysqlcom
#### distributions.
####
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
")
}
}
####
####
#### mysqld and MySQL client programs have a usage printed with --help.
#### mysqld and MySQL client programs have a usage printed with --help.
#### This usage includes a copyright, which needs to be modified
#### This usage includes a copyright, which needs to be modified
...
...
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