1#!/usr/bin/gawk -f
2# -*- tab-width: 4; indent-tabs-mode: t -*-
3#
4# This file is part of the LibreOffice project.
5#
6# This Source Code Form is subject to the terms of the Mozilla Public
7# License, v. 2.0. If a copy of the MPL was not distributed with this
8# file, You can obtain one at http://mozilla.org/MPL/2.0/.
9#
10
11# Filter out the "sourcefile.cxx" message printed by cl.exe,
12# as there is no way to disable it. This file is used
13# in place of filter-showIncludes.awk (which does the same)
14# when --disable-dependency-tracking is used.
15
16BEGIN {
17    firstline = 1
18}
19
20{
21    if (firstline) {
22        # ignore
23    } else {
24        # because MSVC stupidly prints errors on stdout, it's
25        # necessary to forward everything that isn't matched by the pattern
26        # so users get to see them.
27        print $0 > "/dev/stderr"
28    }
29    firstline = 0
30}
31
32# vim: set noet sw=4 ts=4:
33