File: exports.pl

package info (click to toggle)
libopengl-perl 0.7004%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,088 kB
  • sloc: perl: 9,701; ansic: 8,090; makefile: 110
file content (14 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my $file = 'opengl32.txt';
die "Unable to read '$file'" if (!open(FILE,$file));

my $exports = 'exports.txt';
die "Unable to write '$exports'" if (!open(EXPORTS,">$exports"));
binmode EXPORTS;

foreach my $line (<FILE>)
{
  next if ($line !~ m|\s+\d+\s+[0-9A-F]+\s+[0-9A-F]+ (gl[\w]+)|);
  print EXPORTS "$1\n";
}
close(EXPORTS);
close(FILE);