This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: perl@12605 on VMS, [minor PATCH enclosed]
[perl5.git] / epoc / createpkg.pl
1 #!/usr/bin/perl
2
3 use File::Find;
4 use Cwd;
5
6 $VERSION="5.7";
7 $PATCH="1";
8 $EPOC_VERSION=27;
9 $CROSSCOMPILEPATH=cwd;
10 $CROSSREPLACEPATH="H:\\perl";
11
12
13 sub filefound {
14     my $f = $File::Find::name;
15     
16     return if ( $f =~ /CVS|unicode|CPAN|ExtUtils|IPC|User|DB.pm|\.a$|\.ld$|\.exists$|\.pod$/i);
17     my $back = $f;
18
19     $back =~ s|$CROSSCOMPILEPATH||;
20
21     $back =~ s|/|\\|g;
22
23     my $psiback = $back;
24
25     $psiback =~ s/\\lib\\/\\perl\\lib\\$VERSION.$PATCH\\/i;
26
27     print OUT "\"$CROSSREPLACEPATH$back\"-\"!:$psiback\"\n"  if ( -f $f );
28 ;
29 }
30
31 open OUT,">perl.pkg";
32
33 print OUT "#{\"perl$VERSION\"},(0x100051d8),$PATCH,$EPOC_VERSION,0\n";
34 print OUT "\"$CROSSREPLACEPATH\\Artistic\"-\"\",FT,TA\n";
35 print OUT "\"$CROSSREPLACEPATH\\perlmain.exe\"-\"!:\\system\\programs\\perl.exe\"\n";
36
37 find(\&filefound, cwd.'/lib');
38 print OUT "@\"G:\\lib\\stdlib.sis\",(0x0100002c3)\n"
39
40