This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove old Class-ISA remnants
[perl5.git] / win32 / ce-helpers / cecopy-lib.pl
1 # just copy modules
2 # TODO: copy tests and try to run them...
3 # this file may be used as example on how to use comp.pl
4
5 my @files;
6
7 my %dirs;
8 sub mk {
9   my $r = shift;
10   return if exists $dirs{$r};
11   if ($r=~/\//) {
12     $r=~/^(.*)\/[^\/]*?$/;
13     mk($1);
14   }
15   print STDERR "..\\miniperl.exe -MCross comp.pl --do cemkdir [p]\\lib\\$r\n";
16   system("..\\miniperl.exe -I..\\lib -MCross comp.pl --do cemkdir [p]\\lib\\$r");
17   $dirs{$r}++;
18 }
19 for (@files) {
20   if (/\//) {
21     /^(.*)\/[^\/]*?$/;
22     mk($1);
23   }
24   # currently no stripping POD
25   system("..\\miniperl.exe -I..\\lib -MCross comp.pl --copy pc:..\\lib\\$_ ce:[p]\\lib\\$_");
26 }
27
28 sub BEGIN {
29  @files = qw(
30     attributes.pm
31     AutoLoader.pm
32     AutoSplit.pm
33     autouse.pm
34     base.pm
35     Benchmark.pm
36     bigint.pm
37     bignum.pm
38     bigrat.pm
39     blib.pm
40     bytes.pm
41     Carp.pm
42     charnames.pm
43     _charnames.pm
44     Config.pm
45     constant.pm
46     Cwd.pm
47     DB.pm
48     diagnostics.pm
49     Digest.pm
50     DirHandle.pm
51     Dumpvalue.pm
52     DynaLoader.pm
53     English.pm
54     Env.pm
55     Exporter.pm
56     Fatal.pm
57     fields.pm
58     FileCache.pm
59     FileHandle.pm
60     filetest.pm
61     FindBin.pm
62     if.pm
63     integer.pm
64     less.pm
65     locale.pm
66     Memoize.pm
67     NEXT.pm
68     open.pm
69     overload.pm
70     PerlIO.pm
71     re.pm
72     SelectSaver.pm
73     SelfLoader.pm
74     Shell.pm
75     sigtrap.pm
76     sort.pm
77     strict.pm
78     subs.pm
79     Switch.pm
80     Symbol.pm
81     Test.pm
82     UNIVERSAL.pm
83     utf8.pm
84     vars.pm
85     vmsish.pm
86     warnings.pm
87     XSLoader.pm
88     warnings/register.pm
89     Unicode/Collate.pm
90     Unicode/UCD.pm
91     Time/gmtime.pm
92     Time/Local.pm
93     Time/localtime.pm
94     Time/tm.pm
95     Tie/Array.pm
96     Tie/File.pm
97     Tie/Handle.pm
98     Tie/Hash.pm
99     Tie/Memoize.pm
100     Tie/RefHash.pm
101     Tie/Scalar.pm
102     Tie/SubstrHash.pm
103     Text/Abbrev.pm
104     Text/Balanced.pm
105     Text/ParseWords.pm
106     Text/Soundex.pm
107     Text/Tabs.pm
108     Text/Wrap.pm
109     Test/Builder.pm
110     Test/Harness.pm
111     Test/More.pm
112     Test/Simple.pm
113     Test/Harness/Assert.pm
114     Test/Harness/Iterator.pm
115     Test/Harness/Straps.pm
116     Term/ANSIColor.pm
117     Term/Cap.pm
118     Term/Complete.pm
119     Term/ReadLine.pm
120     Search/Dict.pm
121     Pod/Checker.pm
122     Pod/Find.pm
123     Pod/Functions.pm
124     Pod/Html.pm
125     Pod/InputObjects.pm
126     Pod/LaTeX.pm
127     Pod/Man.pm
128     Pod/ParseLink.pm
129     Pod/Parser.pm
130     Pod/ParseUtils.pm
131     Pod/Plainer.pm
132     Pod/Select.pm
133     Pod/Text.pm
134     Pod/Usage.pm
135     Pod/Text/Color.pm
136     Pod/Text/Overstrike.pm
137     Pod/Text/Termcap.pm
138     Math/BigFloat.pm
139     Math/BigInt.pm
140     Math/BigRat.pm
141     Math/Complex.pm
142     Math/Trig.pm
143     Math/BigInt/Calc.pm
144     Math/BigInt/Trace.pm
145     Math/BigFloat/Trace.pm
146     Locale/Constants.pm
147     Locale/Country.pm
148     Locale/Currency.pm
149     Locale/Language.pm
150     Locale/Maketext.pm
151     Locale/Script.pm
152     IPC/Open2.pm
153     IPC/Open3.pm
154     I18N/Collate.pm
155     I18N/LangTags.pm
156     I18N/LangTags/List.pm
157     Hash/Util.pm
158     Getopt/Long.pm
159     Getopt/Std.pm
160     Filter/Simple.pm
161     File/Basename.pm
162     File/CheckTree.pm
163     File/Compare.pm
164     File/Copy.pm
165     File/DosGlob.pm
166     File/Find.pm
167     File/Path.pm
168     File/Spec.pm
169     File/stat.pm
170     File/Temp.pm
171     File/Spec/Functions.pm
172     File/Spec/Mac.pm
173     File/Spec/Unix.pm
174     File/Spec/Win32.pm
175     ExtUtils/Command.pm
176     ExtUtils/Constant.pm
177     ExtUtils/Embed.pm
178     ExtUtils/Install.pm
179     ExtUtils/Installed.pm
180     ExtUtils/Liblist.pm
181     ExtUtils/MakeMaker.pm
182     ExtUtils/Manifest.pm
183     ExtUtils/Miniperl.pm
184     ExtUtils/Mkbootstrap.pm
185     ExtUtils/Mksymlists.pm
186     ExtUtils/MM.pm
187     ExtUtils/MM_Any.pm
188     ExtUtils/MM_DOS.pm
189     ExtUtils/MM_Unix.pm
190     ExtUtils/MM_UWIN.pm
191     ExtUtils/MM_Win32.pm
192     ExtUtils/MM_Win95.pm
193     ExtUtils/MY.pm
194     ExtUtils/Packlist.pm
195     ExtUtils/testlib.pm
196     ExtUtils/Liblist/Kid.pm
197     ExtUtils/Command/MM.pm
198     Exporter/Heavy.pm
199     Devel/SelfStubber.pm
200     Class/Struct.pm
201     Carp/Heavy.pm
202     Attribute/Handlers.pm
203     Attribute/Handlers/demo/Demo.pm
204     Attribute/Handlers/demo/Descriptions.pm
205     Attribute/Handlers/demo/MyClass.pm
206   );
207 }