view message_tie.pl @ 1283:91479703e22e

[Issue 710] New: compiler assertion failure w/ templates Dan <ddaglas@gmail.com> 2006-12-22 http://d.puremagic.com/issues/show_bug.cgi?id=710
author thomask
date Tue, 26 Dec 2006 14:21:23 +0000
parents 7269c8972179
children
line wrap: on
line source

#!/usr/bin/perl

use strict;
use warnings;

my $message_pattern = shift;
my $last_cmd;

while (<>) {
	if (/^(run|norun|compile|nocompile): (.*)/) {
		$last_cmd = $2;
	} elsif (/$message_pattern/) {
		print "$last_cmd\n$_\n";
	}
}