mysql-copyright:

  Fixed vim to expandtab's, retab'd code
  Fixed CWD bug in trim_the_fat()
parent 6cd530b3
...@@ -104,7 +104,7 @@ sub main ...@@ -104,7 +104,7 @@ sub main
copy("$WD/Docs/MySQLEULA.txt", "$destdir"); copy("$WD/Docs/MySQLEULA.txt", "$destdir");
# remove readline, bdb subdirs and update 'configure' # remove readline, bdb subdirs and update 'configure'
my @extra_fat= ('cmd-line-utils/readline', 'bdb'); my @extra_fat= ('bdb', 'cmd-line-utils/readline');
foreach my $fat (@extra_fat) foreach my $fat (@extra_fat)
{ {
...@@ -147,6 +147,7 @@ sub main ...@@ -147,6 +147,7 @@ sub main
sub trim_the_fat sub trim_the_fat
{ {
my $the_fat= shift; my $the_fat= shift;
my $cwd= getcwd();
system("rm -rf $destdir/${the_fat}"); system("rm -rf $destdir/${the_fat}");
if ($win_flag) if ($win_flag)
...@@ -166,7 +167,8 @@ sub trim_the_fat ...@@ -166,7 +167,8 @@ sub trim_the_fat
print CONFIGURE $configure; print CONFIGURE $configure;
close(CONFIGURE); close(CONFIGURE);
`autoconf`; `autoconf`;
die "'./configure' was not produced!" unless (-f "configure") die "'./configure' was not produced!" unless (-f "configure");
chdir("$cwd");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment