This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
consting for .c files in tests
[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     Config.pm
44     constant.pm
45     Cwd.pm
46     DB.pm
47     diagnostics.pm
48     Digest.pm
49     DirHandle.pm
50     Dumpvalue.pm
51     DynaLoader.pm
52     English.pm
53     Env.pm
54     Exporter.pm
55     Fatal.pm
56     fields.pm
57     FileCache.pm
58     FileHandle.pm
59     filetest.pm
60     FindBin.pm
61     if.pm
62     integer.pm
63     less.pm
64     locale.pm
65     Memoize.pm
66     NEXT.pm
67     open.pm
68     overload.pm
69     PerlIO.pm
70     re.pm
71     SelectSaver.pm
72     SelfLoader.pm
73     Shell.pm
74     sigtrap.pm
75     sort.pm
76     strict.pm
77     subs.pm
78     Switch.pm
79     Symbol.pm
80     Test.pm
81     UNIVERSAL.pm
82     utf8.pm
83     vars.pm
84     vmsish.pm
85     warnings.pm
86     XSLoader.pm
87     warnings/register.pm
88     Unicode/Collate.pm
89     Unicode/UCD.pm
90     Time/gmtime.pm
91     Time/Local.pm
92     Time/localtime.pm
93     Time/tm.pm
94     Tie/Array.pm
95     Tie/File.pm
96     Tie/Handle.pm
97     Tie/Hash.pm
98     Tie/Memoize.pm
99     Tie/RefHash.pm
100     Tie/Scalar.pm
101     Tie/SubstrHash.pm
102     Text/Abbrev.pm
103     Text/Balanced.pm
104     Text/ParseWords.pm
105     Text/Soundex.pm
106     Text/Tabs.pm
107     Text/Wrap.pm
108     Test/Builder.pm
109     Test/Harness.pm
110     Test/More.pm
111     Test/Simple.pm
112     Test/Harness/Assert.pm
113     Test/Harness/Iterator.pm
114     Test/Harness/Straps.pm
115     Term/ANSIColor.pm
116     Term/Cap.pm
117     Term/Complete.pm
118     Term/ReadLine.pm
119     Search/Dict.pm
120     Pod/Checker.pm
121     Pod/Find.pm
122     Pod/Functions.pm
123     Pod/Html.pm
124     Pod/InputObjects.pm
125     Pod/LaTeX.pm
126     Pod/Man.pm
127     Pod/ParseLink.pm
128     Pod/Parser.pm
129     Pod/ParseUtils.pm
130     Pod/Plainer.pm
131     Pod/Select.pm
132     Pod/Text.pm
133     Pod/Usage.pm
134     Pod/Text/Color.pm
135     Pod/Text/Overstrike.pm
136     Pod/Text/Termcap.pm
137     Math/BigFloat.pm
138     Math/BigInt.pm
139     Math/BigRat.pm
140     Math/Complex.pm
141     Math/Trig.pm
142     Math/BigInt/Calc.pm
143     Math/BigInt/Trace.pm
144     Math/BigFloat/Trace.pm
145     Locale/Constants.pm
146     Locale/Country.pm
147     Locale/Currency.pm
148     Locale/Language.pm
149     Locale/Maketext.pm
150     Locale/Script.pm
151     IPC/Open2.pm
152     IPC/Open3.pm
153     I18N/Collate.pm
154     I18N/LangTags.pm
155     I18N/LangTags/List.pm
156     Hash/Util.pm
157     Getopt/Long.pm
158     Getopt/Std.pm
159     Filter/Simple.pm
160     File/Basename.pm
161     File/CheckTree.pm
162     File/Compare.pm
163     File/Copy.pm
164     File/DosGlob.pm
165     File/Find.pm
166     File/Path.pm
167     File/Spec.pm
168     File/stat.pm
169     File/Temp.pm
170     File/Spec/Functions.pm
171     File/Spec/Mac.pm
172     File/Spec/Unix.pm
173     File/Spec/Win32.pm
174     ExtUtils/Command.pm
175     ExtUtils/Constant.pm
176     ExtUtils/Embed.pm
177     ExtUtils/Install.pm
178     ExtUtils/Installed.pm
179     ExtUtils/Liblist.pm
180     ExtUtils/MakeMaker.pm
181     ExtUtils/Manifest.pm
182     ExtUtils/Miniperl.pm
183     ExtUtils/Mkbootstrap.pm
184     ExtUtils/Mksymlists.pm
185     ExtUtils/MM.pm
186     ExtUtils/MM_Any.pm
187     ExtUtils/MM_DOS.pm
188     ExtUtils/MM_Unix.pm
189     ExtUtils/MM_UWIN.pm
190     ExtUtils/MM_Win32.pm
191     ExtUtils/MM_Win95.pm
192     ExtUtils/MY.pm
193     ExtUtils/Packlist.pm
194     ExtUtils/testlib.pm
195     ExtUtils/Liblist/Kid.pm
196     ExtUtils/Command/MM.pm
197     Exporter/Heavy.pm
198     Devel/SelfStubber.pm
199     Class/ISA.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 }