File: make.pl

package info (click to toggle)
nvi 1.81.6-11
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,780 kB
  • ctags: 5,451
  • sloc: ansic: 43,638; sh: 11,239; makefile: 604; perl: 262; tcl: 234; awk: 19
file content (20 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sub push_tags {
    my ($fh) = shift;
    my ($tagq) = $curscr->TagQ("msg");
    while(<$fh>) {
	my ($f, $l, $m);
	if ((($f, $l, $m) = split /:/) >= 2 && -f $f && $l =~ /^\d+$/) {
	    $tagq->Add($f, $l, $m);
	}
    }
    $tagq->Push();
}

sub make {
    local (*FH);
    open FH, "make 2>&1 |";
    ::push_tags(\*FH);
    close FH;
}

1;