2 # -*- tab-width: 4; indent-tabs-mode: t -*-
4 # This file is part of the LibreOffice project.
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/.
11 # Filter out the "Creating library" message printed by link.exe,
12 # as there is no way to disable it.
15 creatinglibrary_prefix =
ENVIRON["CREATINGLIBRARY_PREFIX"];
16 generatingcode_message =
ENVIRON["GENERATINGCODE_MESSAGE"];
17 finishedgeneratingcode_message =
ENVIRON["FINISHEDGENERATINGCODE_MESSAGE"];
18 if (!creatinglibrary_prefix
) {
19 creatinglibrary_prefix =
"\\.lib.*\\.exp"
21 if (!generatingcode_message
) {
22 generatingcode_message =
"Generating code"
24 if (!finishedgeneratingcode_message
) {
25 finishedgeneratingcode_message =
"Finished generating code"
31 if (firstline
&& match($
0, creatinglibrary_prefix
)) {
33 } else if (match($
0, generatingcode_message
)) {
35 } else if (match($
0, finishedgeneratingcode_message
)) {
38 # because MSVC stupidly prints errors on stdout, it's
39 # necessary to forward everything that isn't matched by the pattern
40 # so users get to see them.
41 print $
0 > "/dev/stderr"
46 # vim: set noet sw=4 ts=4: