summaryrefslogtreecommitdiff
path: root/Build-tools
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-08-31 16:53:25 +0300
committerunknown <monty@mysql.com>2004-08-31 16:53:25 +0300
commit93c1e1bca16d0a9e18a4bfa3d8dbbe83fb544d78 (patch)
tree517681f3f24bff198f452f95eba935119c9c701d /Build-tools
parentd0b5762d80c90d8048a29474d53e3994d866e70b (diff)
parentefcf75a9b032354f8199b5883d4dc4c943162612 (diff)
downloadmariadb-git-93c1e1bca16d0a9e18a4bfa3d8dbbe83fb544d78.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1 sql/sql_base.cc: Auto merged sql/sql_prepare.cc: Auto merged
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");
}
####