Commit 7327cb64 authored by Andrew Dunstan's avatar Andrew Dunstan

Port backup check on psql lexer to MSVC.

parent 28190bac
......@@ -65,6 +65,20 @@ if ($? == 0)
print $cfile $ccode;
close($cfile);
}
if ($flexflags =~ /\s-b\s/)
{
my $lexback = dirname($input) . "/lex.backup";
open($lfile,$lexback) || die "opening $lexback for reading: $!";
my $lexbacklines = <$lfile>;
close($lfile);
my $linecount = $lexbacklines =~ tr /\n/\n/;
if ($linecount != 1)
{
print "Scanner requires backup, see lex.backup.\n";
exit 1;
}
unlink $lexback;
}
exit 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment