1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

mysql-copyright:

Fix for the condition when "the_fat" doesn't end with 'dnl\n', but ')\n'.
This commit is contained in:
mwagner@here.mwagner.org
2004-06-30 23:29:47 -05:00
parent 26609c491e
commit 35b512f079

View File

@ -162,7 +162,23 @@ sub trim_the_fat
undef $/; undef $/;
my $configure= <CONFIGURE>; my $configure= <CONFIGURE>;
close(CONFIGURE); close(CONFIGURE);
$configure=~ s|${the_fat}/Makefile dnl\n?||g;
#
# If $the_fat Makefile line closes the parenthesis, then
# replace that line with just the closing parenthesis.
#
if ($configure=~ m|${the_fat}/Makefile\)\n?|)
{
$configure=~ s|${the_fat}/Makefile(\)\n?)|$1|;
}
#
# Else just delete the line
#
else
{
$configure=~ s|${the_fat}/Makefile dnl\n?||;
}
open(CONFIGURE,">configure.in") or die "Unable to open configure.in for write: $!\n"; open(CONFIGURE,">configure.in") or die "Unable to open configure.in for write: $!\n";
print CONFIGURE $configure; print CONFIGURE $configure;
close(CONFIGURE); close(CONFIGURE);