blob: 50c197ec7e7adcfd2186552a6fb946b9ac7d7689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
print <<'EOF';
=head1 NAME
MDK::Common - miscellaneous functions
=head1 SYNOPSIS
use MDK::Common;
# exports all functions, equivalent to
use MDK::Common::DataStructure qw(:all);
use MDK::Common::File qw(:all);
use MDK::Common::Func qw(:all);
use MDK::Common::Math qw(:all);
use MDK::Common::String qw(:all);
use MDK::Common::System qw(:all);
use MDK::Common::Various qw(:all);
=head1 DESCRIPTION
C<MDK::Common> is a collection of packages containing various simple functions:
L<MDK::Common::DataStructure>,
L<MDK::Common::File>,
L<MDK::Common::Func>,
L<MDK::Common::Globals>,
L<MDK::Common::Math>,
L<MDK::Common::String>,
L<MDK::Common::System>,
L<MDK::Common::Various>.
EOF
foreach my $f (<MDK/Common/*.pm>) {
(my $pkg = $f) =~ s|/|::|g;
open F, $f or die "can't open file $f";
while (<F>) {
if (/^=head1 (EXPORTS|OTHER)/ .. /^=back/) {
s/^=head1 EXPORTS/=head1 EXPORTS from $pkg/;
s/^=head1 OTHER/=head1 OTHER in $pkg/;
s/^=back/=back\n/;
print;
}
}
}
print <<'EOF';
=head1 COPYRIGHT
Copyright (c) 2001 MandrakeSoft <pixel@mandrakesoft.com>. All rights reserved.
This program is free software; you can redistribute it and/or
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);
use MDK::Common::Func qw(:all);
use MDK::Common::Math qw(:all);
use MDK::Common::String qw(:all);
use MDK::Common::System qw(:all);
use MDK::Common::Various qw(:all);
use vars qw(@ISA @EXPORT $VERSION); #);
@ISA = qw(Exporter);
# perl_checker: RE-EXPORT-ALL
@EXPORT = map { @$_ } map { values %{'MDK::Common::' . $_ . 'EXPORT_TAGS'} } grep { /::$/ } keys %MDK::Common::;
$VERSION = "1.0.2";
1;
EOF
|