source: trunk/third/perl/epoc/createpkg.pl @ 20075

Revision 20075, 799 bytes checked in by zacheiss, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20074, which included commits to RCS files with non-trunk default branches.
Line 
1#!/usr/bin/perl
2
3use File::Find;
4use Cwd;
5
6$VERSION="5.8.3";
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.