File: cutheader.pl

package info (click to toggle)
libjpeg 0.0~git20210129.91985dc-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,664 kB
  • sloc: cpp: 36,104; makefile: 613; ansic: 275; sh: 54; python: 38; perl: 11
file content (19 lines) | stat: -rwxr-xr-x 263 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w
#
# $Id: cutheader.pl,v 1.1 2012-06-02 10:27:13 thor Exp $
#

$line = <STDIN>;
if ($line =~ /\/\*\*/) {
    do {
	$line = <STDIN>;
    } while ($line !~ /\*\*\/$/);
} else {
    print $line;
}

while($line = <STDIN>) {
    print $line;
}