Branch libreoffice-5-0-4
[LibreOffice.git] / bin / count-todo-dialogs
blob09f85c90dbd4fb3f94c7c65e4cd607137b8253fb
1 #!/bin/sh
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
16 dialogs=0
17 tabpages=0
18 errorboxes=0
19 infoboxes=0
20 queryboxes=0
21 warningboxes=0
22 msgboxes=0
23 floatingwindows=0
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
36 num=$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.