This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Old hosts like NeXT Classic don't have sort -k,
[perl5.git] / epoc / createpkg.pl
CommitLineData
14bdf8d3
OF
1#!/usr/bin/perl
2
3use File::Find;
4use Cwd;
5
ed79a026 6$VERSION="5.7";
d5ff79b3
OF
7$PATCH="1";
8$EPOC_VERSION=27;
14bdf8d3
OF
9
10
11sub filefound {
14bdf8d3 12
02a99678
JH
13 my $f = $File::Find::name;
14
15 return if ( $f =~ /CVS|unicode|CPAN|ExtUtils|IPC|User|DB.pm|\.a$|\.ld$|\.exists$|\.pod$/i);
16 my $back = $f;
14bdf8d3 17
02a99678 18 my $psiback = $back;
14bdf8d3 19
02a99678 20 $psiback =~ s|.*/lib/|\\perl\\lib\\$VERSION.$PATCH\\|;
14bdf8d3 21
02a99678 22 print OUT "\"$back\"-\"!:$psiback\"\n" if ( -f $f );
14bdf8d3
OF
23}
24
14bdf8d3
OF
25open OUT,">perl.pkg";
26
27print OUT "#{\"perl$VERSION\"},(0x100051d8),$PATCH,$EPOC_VERSION,0\n";
02a99678
JH
28print OUT "\"" . cwd . "/Artistic.txt\"-\"\",FT,TA\n";
29print OUT "\"" . cwd . "/perl\"-\"!:\\system\\programs\\perl.exe\"\n";
14bdf8d3
OF
30
31find(\&filefound, cwd.'/lib');
02a99678
JH
32# print OUT "@\"G:\\lib\\stdlib.sis\",(0x0100002c3)\n";
33
34open IN, "<Artistic";
35open OUT, ">Artistic.txt";
36while (my $line = <IN>) {
37 chomp $line;
38 print OUT "$line\x13\x10";
39}
14bdf8d3 40
02a99678
JH
41close IN;
42close OUT;
14bdf8d3 43