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
b817b007
Commit
b817b007
authored
Aug 20, 2004
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1
into rurik.mysql.com:/home/igor/mysql-4.1
parents
38629144
325ea1b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
Build-tools/mysql-copyright
Build-tools/mysql-copyright
+26
-5
No files found.
Build-tools/mysql-copyright
View file @
b817b007
...
...
@@ -115,6 +115,9 @@ sub main
# fix file copyrights
&
fix_usage_copyright
();
&
add_copyright
();
# fix LICENSE tag in include/mysql_version.h
&
fix_mysql_version
();
# rename the directory with new distribution name
chdir
("
$WD
/
$dir
");
...
...
@@ -141,6 +144,28 @@ sub main
exit
(
0
);
}
####
#### This function will s/GPL/Commercial/ in include/mysql_version.h for the
#### LICENSE tag.
####
sub
fix_mysql_version
{
chdir
("
$destdir
");
my
$header_file
=
(
-
f
'
include/mysql_version.h.in
')?
'
include/mysql_version.h.in
'
:
'
include/mysql_version.h
';
open
(
MYSQL_VERSION
,"
<
$header_file
")
or
die
"
Unable to open include/mysql_version.h for read: $!
\n
";
undef
$/
;
my
$mysql_version
=
<
MYSQL_VERSION
>
;
close
(
MYSQL_VERSION
);
$mysql_version
=~
s/\#define LICENSE[\s\t]+GPL/#define LICENSE Commercial/
;
open
(
MYSQL_VERSION
,"
>
$header_file
")
or
die
"
Unable to open include/mysql_version.h for write: $!
\n
";
print
MYSQL_VERSION
$mysql_version
;
close
(
MYSQL_VERSION
);
chdir
("
$cwd
");
}
####
#### This function will remove unwanted parts of a src tree for the mysqlcom
#### distributions.
...
...
@@ -151,11 +176,7 @@ sub trim_the_fat
my
$cwd
=
getcwd
();
system
("
rm -rf
$destdir
/
${the_fat}
");
if
(
$win_flag
)
{
chdir
("
$destdir
")
or
die
"
Unable to change directory to
$destdir
!: $!
\n
";
}
else
if
(
!
$win_flag
)
{
chdir
("
$destdir
");
unlink
("
configure
")
or
die
"
Can't delete
$destdir
/configure: $!
\n
";
...
...
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