3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # Run this from the source root dir to count:
10 # a) the number of .ui files
11 # b) the estimated amount of additional .ui files required
13 converted
=`ls */uiconfig/ui/*.ui */uiconfig/*/ui/*.ui|wc -l`
14 echo $converted .ui files currently exist
24 dockingwindows
=`git grep -h DockingWindow -- *.src|grep -v HelpID|grep -v hrc|cut -d' ' -f2- |sort|uniq|wc -l`
26 echo There are
$dialogs unconverted dialogs
27 echo There are
$tabpages unconverted tabpages
28 echo There are
$errorboxes unconverted errorboxes
29 echo There are
$infoboxes unconverted infoboxes
30 echo There are
$queryboxes unconverted queryboxes
31 echo There are
$warningboxes unconverted warningboxes
32 echo There are
$msgboxes unconverted msgboxes
33 echo There are
$floatingwindows unconverted floatingwindows
34 echo There are
$dockingwindows unconverted dockingwindows
37 echo An estimated additional
$num .ui are required
39 percent
=$
(($converted * 100 / ($num + $converted)))
40 echo We are
$percent% of the way through the .ui conversion.