File: fixmakefml

package info (click to toggle)
fml 4.0.3.dfsg-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,528 kB
  • ctags: 5
  • sloc: perl: 711; sh: 95; makefile: 88
file content (17 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

open(ORIG, "$ARGV[0]/makefml") or die "cannot open makefml,$!";
open(NEW, ">debian/makefml") or die "cannot open debian/makefml,$!";
select(NEW);

while (<ORIG>) {
    if (/open\(IN/) {
	print "#" . $_;
	print '    open(IN, "<&STDIN");' . "\n";
	next;
    }
    print;
}
close(ORIG);
close(NEW);
exit 0;