summaryrefslogtreecommitdiff
path: root/Build-tools
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-08-31 14:35:04 +0300
committermonty@mysql.com <>2004-08-31 14:35:04 +0300
commit6adaff23a4b2170f59dda27cd5b897adb40c2542 (patch)
tree0b5dee6e825afda907f8333d42fa031460fb3597 /Build-tools
parentceba1429b731a0712f49bcd43f70aabc41e8094f (diff)
downloadmariadb-git-6adaff23a4b2170f59dda27cd5b897adb40c2542.tar.gz
Review of new pushed code (Indentation fixes and simple optimizations)
Use 'mysqltest' as test database instead of test_$1 or test1,test2 to not accidently delete an important database Safety fix for mailformed MERGE files
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");
}
####