diff options
author | mwagner@here.mwagner.org <> | 2004-07-01 14:48:58 -0500 |
---|---|---|
committer | mwagner@here.mwagner.org <> | 2004-07-01 14:48:58 -0500 |
commit | 6cd34875cf6134d6306b2a03e79bb2401c527073 (patch) | |
tree | a287edf3e2f34eba897a3bdbc82cc1d78a72efbe /Build-tools | |
parent | 8462b8aeb83355fa6c5cb4f45ea0ed63ba9e0712 (diff) | |
parent | 4ba6a73d548f884420198a988c51e03edd3880bc (diff) | |
download | mariadb-git-6cd34875cf6134d6306b2a03e79bb2401c527073.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into here.mwagner.org:/Volumes/BK/mysql-4.1
Diffstat (limited to 'Build-tools')
-rwxr-xr-x | Build-tools/mysql-copyright | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Build-tools/mysql-copyright b/Build-tools/mysql-copyright index f2da3cdf447..e1ee513e06d 100755 --- a/Build-tools/mysql-copyright +++ b/Build-tools/mysql-copyright @@ -162,7 +162,23 @@ sub trim_the_fat undef $/; my $configure= <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"; print CONFIGURE $configure; close(CONFIGURE); |