summaryrefslogtreecommitdiff
path: root/Build-tools
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-08-31 16:53:25 +0300
committermonty@mysql.com <>2004-08-31 16:53:25 +0300
commit7abae83300e2d75ea2a077fee1349915cb366967 (patch)
tree517681f3f24bff198f452f95eba935119c9c701d /Build-tools
parente022b3144e3adb9c12fcfb73110070abbef3e863 (diff)
parent6adaff23a4b2170f59dda27cd5b897adb40c2542 (diff)
downloadmariadb-git-7abae83300e2d75ea2a077fee1349915cb366967.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1
Diffstat (limited to 'Build-tools')
-rwxr-xr-xBuild-tools/mysql-copyright26
1 files changed, 13 insertions, 13 deletions
diff --git a/Build-tools/mysql-copyright b/Build-tools/mysql-copyright
index 77a90fbf4e4..0c091890e72 100755
--- a/Build-tools/mysql-copyright
+++ b/Build-tools/mysql-copyright
@@ -150,20 +150,20 @@ sub main
####
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);
+ chdir("$destdir");
+ my $header_file= (-f 'include/mysql_version.h.in')? 'include/mysql_version.h.in' : 'include/mysql_version.h';
- $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");
+ open(MYSQL_VERSION,"<$header_file") or die "Unable to open $header_file 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 $header_file for write: $!\n";
+ print MYSQL_VERSION $mysql_version;
+ close(MYSQL_VERSION);
+ chdir("$cwd");
}
####