bump product version to 7.6.3.2-android
[LibreOffice.git] / solenv / gbuild / platform / filter-creatingLibrary.awk
blob231609feb2d5b1d4e86fc9f924443984a5d5893b
1 #!/usr/bin/gawk -f
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.
14 BEGIN {
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"
27 firstline = 1
31 if (firstline && match($0, creatinglibrary_prefix)) {
32 # ignore
33 } else if (match($0, generatingcode_message)) {
34 # ignore
35 } else if (match($0, finishedgeneratingcode_message)) {
36 # ignore
37 } else {
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"
43 firstline = 0
46 # vim: set noet sw=4 ts=4: