summaryrefslogtreecommitdiffstats
path: root/MDK/Common.pm.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-12-15 21:17:41 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-12-15 21:17:41 +0000
commitcad4f8c234e16f7eb01c483017cdc5169eb68f21 (patch)
tree394143a6789d5ee5ce0382787f362955544addd8 /MDK/Common.pm.pl
parent5fbb34c76f4ab00cd06d337468807e21d7bef91a (diff)
downloadperl-MDK-Common-cad4f8c234e16f7eb01c483017cdc5169eb68f21.tar
perl-MDK-Common-cad4f8c234e16f7eb01c483017cdc5169eb68f21.tar.gz
perl-MDK-Common-cad4f8c234e16f7eb01c483017cdc5169eb68f21.tar.bz2
perl-MDK-Common-cad4f8c234e16f7eb01c483017cdc5169eb68f21.tar.xz
perl-MDK-Common-cad4f8c234e16f7eb01c483017cdc5169eb68f21.zip
prevent MDK::Common from breaking all gi code
Diffstat (limited to 'MDK/Common.pm.pl')
-rw-r--r--MDK/Common.pm.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/MDK/Common.pm.pl b/MDK/Common.pm.pl
index 0dbddd2..e987c90 100644
--- a/MDK/Common.pm.pl
+++ b/MDK/Common.pm.pl
@@ -36,7 +36,9 @@ EOF
foreach my $f (<MDK/Common/*.pm>) {
(my $pkg = $f) =~ s|/|::|g;
+ (my $pm = $pkg) =~ s/.pm$//g;
open F, $f or die "can't open file $f";
+ print "=cut\npackage MDK::Common::$pm;\n";
while (<F>) {
if (/^=head1 (EXPORTS|OTHER)/ .. /^=back/) {
s/^=head1 EXPORTS/=head1 EXPORTS from $pkg/;
@@ -57,6 +59,7 @@ modify it under the same terms as Perl itself.
=cut
+package MDK::Common;
use MDK::Common::DataStructure qw(:all);
use MDK::Common::File qw(:all);