source: vendor/perl/5.8.8/epoc/createpkg.pl

Last change on this file was 3181, checked in by bird, 18 years ago

perl 5.8.8

File size: 799 bytes
Line 
1#!/usr/bin/perl
2
3use File::Find;
4use Cwd;
5
6$VERSION="5.8.8";
7$EPOC_VERSION=1;
8
9
10sub filefound {
11
12 my $f = $File::Find::name;
13
14 return if ( $f =~ /CVS|Unicode|unicore|CPAN|ExtUtils|IPC|User|DB.pm|\.a$|\.ld$|\.exists$|\.pod$|\.t$/i);
15 my $back = $f;
16
17 my $psiback = $back;
18
19 $psiback =~ s|.*/lib/|\\emx\\lib\\perl\\$VERSION\\|;
20 $psiback =~ s|/|\\|g;
21 print OUT "\"$back\"-\"!:$psiback\"\n" if ( -f $f );
22}
23
24open OUT,">perl.pkg";
25
26print OUT "#{\"perl$VERSION\"},(0x100051d8),0,$EPOC_VERSION,0\n";
27print OUT "\"" . cwd . "/Artistic.txt\"-\"\",FT,TC\n";
28print OUT "\"" . cwd . "/perl\"-\"!:\\emx\\bin\\perl.exe\"\n";
29
30find(\&filefound, cwd.'/lib');
31
32open IN, "<Artistic";
33open OUT, ">Artistic.txt";
34while (my $line = <IN>) {
35 chomp $line;
36 print OUT "$line\r\n";
37}
38
39close IN;
40close OUT;
41
Note: See TracBrowser for help on using the repository browser.