3 # -*- Mode: awk; tab-width: 4; indent-tabs-mode: t -*-
5 # This file is part of the LibreOffice project.
7 # This Source Code Form is subject to the terms of the Mozilla Public
8 # License, v. 2.0. If a copy of the MPL was not distributed with this
9 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 # Consecutively number a series of defines, for example sc/inc/globstr.hrc
13 # WARNING: this does not expect other defines in between and would mess around
22 if ($
1 ~
/#define/ && lastline !~ /#ifndef/)
24 n =
split( $
0, a
, / +/, s
);
27 dupmsg =
" // XXX was duplicate " a
[3] " of " dup
[a
[3]];
38 lastline = lastline a
[i
] s
[i
];
40 lastline = lastline dupmsg
;
49 # vim:set shiftwidth=4 softtabstop=4 expandtab: