diff options
Diffstat (limited to 'gnu/usr.bin/perl/epoc/createpkg.pl')
-rw-r--r-- | gnu/usr.bin/perl/epoc/createpkg.pl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/epoc/createpkg.pl b/gnu/usr.bin/perl/epoc/createpkg.pl new file mode 100644 index 00000000000..6977bd385f5 --- /dev/null +++ b/gnu/usr.bin/perl/epoc/createpkg.pl @@ -0,0 +1,40 @@ +#!/usr/bin/perl + +use File::Find; +use Cwd; + +$VERSION="5.5"; +$PATCH="650"; +$EPOC_VERSION=19; +$CROSSCOMPILEPATH=cwd; +$CROSSREPLACEPATH="H:\\devel\\perl5.5.650"; + + +sub filefound { + my $f = $File::Find::name; + + return if ( $f =~ /CVS|unicode|CPAN|ExtUtils|IPC|User|DB.pm|\.a$|\.ld$|\.exists$/i); + my $back = $f; + + $back =~ s|$CROSSCOMPILEPATH||; + + $back =~ s|/|\\|g; + + my $psiback = $back; + + $psiback =~ s/\\lib\\/\\perl\\lib\\$VERSION.$PATCH\\/i; + + print OUT "\"$CROSSREPLACEPATH$back\"-\"!:$psiback\"\n" if ( -f $f ); +; +} + +open OUT,">perl.pkg"; + +print OUT "#{\"perl$VERSION\"},(0x100051d8),$PATCH,$EPOC_VERSION,0\n"; + +print OUT "\"$CROSSREPLACEPATH\\perlmain.exe\"-\"!:\\perl.exe\"\n"; + +find(\&filefound, cwd.'/lib'); +print OUT "@\"G:\\lib\\stdlib.sis\",(0x0100002c3)\n" + + |