[Libreoffice-commits] core.git: bin/count-todo-dialogs
bin/count-todo-dialogs |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) New commits: commit 76ab34ae7a565b7b962967c17b259620f84943f0 Author: Caolán McNamara Date: Sat Aug 30 13:10:06 2014 +0100 didn't know about the dockingwindows Change-Id: I25c1361ed7b87abf4f78fb09aeea65206f7be040 diff --git a/bin/count-todo-dialogs b/bin/count-todo-dialogs index 340fd56..4c1678b 100755 --- a/bin/count-todo-dialogs +++ b/bin/count-todo-dialogs @@ -21,6 +21,7 @@ queryboxes=0 warningboxes=0 msgboxes=0 floatingwindows=`git grep -h FloatingWindow -- *.src|grep -v HelpID|cut -d' ' -f2- |sort|uniq|wc -l` +dockingwindows=`git grep -h DockingWindow -- *.src|grep -v HelpID|grep -v hrc|cut -d' ' -f2- |sort|uniq|wc -l` echo There are $dialogs unconverted dialogs echo There are $tabpages unconverted tabpages @@ -30,8 +31,9 @@ echo There are $queryboxes unconverted queryboxes echo There are $warningboxes unconverted warningboxes echo There are $msgboxes unconverted msgboxes echo There are $floatingwindows unconverted floatingwindows +echo There are $dockingwindows unconverted dockingwindows -num=$(($floatingwindows)) +num=$(($floatingwindows + dockingwindows)) echo An estimated additional $num .ui are required percent=$(($converted * 100 / ($num + $converted))) ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: bin/count-todo-dialogs
bin/count-todo-dialogs |4 1 file changed, 4 insertions(+) New commits: commit 88ca84d56113fa5228a1fd9297d7c16fdafa7c47 Author: Michael Meeks Date: Mon Jan 20 16:20:32 2014 + Add a %age completion. Change-Id: I6066d42abddcefc9d7fe4bd19477a11294b138b2 diff --git a/bin/count-todo-dialogs b/bin/count-todo-dialogs index fdb6fbb..27f5f3c 100755 --- a/bin/count-todo-dialogs +++ b/bin/count-todo-dialogs @@ -22,3 +22,7 @@ echo There are $tabpages unconverted tabpages num=$(($dialogs + $tabpages)) echo An estimated additional $num .ui are required + +percent=$(($converted * 100 / ($num + $converted))) +echo We are $percent% of the way through. + ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: bin/count-todo-dialogs
bin/count-todo-dialogs |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit c7d923ad8195211e618b0a65caad4456da20fcec Author: Caolán McNamara Date: Fri Nov 15 12:17:03 2013 + update count-todo-dialogs to exclude comments mentioning Dialogs Change-Id: I997356cc76c8ef9737309b3347f7a1969d306682 diff --git a/bin/count-todo-dialogs b/bin/count-todo-dialogs index fef854d..fdb6fbb 100755 --- a/bin/count-todo-dialogs +++ b/bin/count-todo-dialogs @@ -13,9 +13,9 @@ converted=`ls */uiconfig/ui/*.ui */uiconfig/*/ui/*.ui|wc -l` echo $converted .ui files currently exist -dialogs=`git grep -h Dialog -- *.src|grep -v DialogControl|grep -v HelpID|grep -v define|grep -v String|grep -v QuickHelpText|grep -v "Text \[ en-US \]"|grep -v HelpId|grep -v "Cancel-Button"|grep -v \"Dialog\"|grep -v "Dialog Controls" |grep -v .uno:|grep -v "//"|grep -v include|grep -v "paste region"|grep -v "Tabpage-Dialog"|sed -e 's/^ *//g' -e 's/ *$//g'|cut -d' ' -f2- |sort|uniq|wc -l` +dialogs=`git grep -h Dialog -- *.src|grep -v DialogControl|grep -v HelpID|grep -v define|grep -v String|grep -v QuickHelpText|grep -v "Text \[ en-US \]"|grep -v HelpId|grep -v "Cancel-Button"|grep -v \"Dialog\"|grep -v "Dialog Controls" |grep -v .uno:|grep -v "//"|grep -v "*/"|grep -v include|grep -v "paste region"|grep -v "Tabpage-Dialog"|sed -e 's/^ *//g' -e 's/ *$//g'|cut -d' ' -f2- |sort|uniq|wc -l` -tabpages=`git grep -h TabPage -- *.src|grep -v DialogControl|grep -v HelpID|grep -v define|grep -v String|grep -v QuickHelpText|grep -v "Text \[ en-US \]"|grep -v HelpId|grep -v "Cancel-Button"|grep -v \"Dialog\"|grep -v "Dialog Controls" |grep -v .uno:|grep -v "//"|grep -v include|grep -v "paste region"|grep -v "Tabpage-Dialog"|sed -e 's/^ *//g' -e 's/ *$//g'|cut -d' ' -f2- |sort|uniq|wc -l` +tabpages=`git grep -h TabPage -- *.src|grep -v DialogControl|grep -v HelpID|grep -v define|grep -v String|grep -v QuickHelpText|grep -v "Text \[ en-US \]"|grep -v HelpId|grep -v "Cancel-Button"|grep -v \"Dialog\"|grep -v "Dialog Controls" |grep -v .uno:|grep -v "//"|grep -v "*/"|grep -v include|grep -v "paste region"|grep -v "Tabpage-Dialog"|sed -e 's/^ *//g' -e 's/ *$//g'|cut -d' ' -f2- |sort|uniq|wc -l` echo There are $dialogs unconverted dialogs echo There are $tabpages unconverted tabpages ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: bin/count-todo-dialogs
bin/count-todo-dialogs | 24 1 file changed, 24 insertions(+) New commits: commit 8a1f6b6ec39b849a83a5c394635af166a0ff692b Author: Caolán McNamara Date: Tue Jul 30 16:13:07 2013 +0100 add a utility to estimate how much new .ui files we need Change-Id: I9b2a2ae1e8d74df701b4a2fcf28460759a95d639 diff --git a/bin/count-todo-dialogs b/bin/count-todo-dialogs new file mode 100755 index 000..fef854d --- /dev/null +++ b/bin/count-todo-dialogs @@ -0,0 +1,24 @@ +#!/bin/sh +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# Run this from the source root dir to count: +# a) the number of .ui files +# b) the estimated amount of additional .ui files required + +converted=`ls */uiconfig/ui/*.ui */uiconfig/*/ui/*.ui|wc -l` +echo $converted .ui files currently exist + +dialogs=`git grep -h Dialog -- *.src|grep -v DialogControl|grep -v HelpID|grep -v define|grep -v String|grep -v QuickHelpText|grep -v "Text \[ en-US \]"|grep -v HelpId|grep -v "Cancel-Button"|grep -v \"Dialog\"|grep -v "Dialog Controls" |grep -v .uno:|grep -v "//"|grep -v include|grep -v "paste region"|grep -v "Tabpage-Dialog"|sed -e 's/^ *//g' -e 's/ *$//g'|cut -d' ' -f2- |sort|uniq|wc -l` + +tabpages=`git grep -h TabPage -- *.src|grep -v DialogControl|grep -v HelpID|grep -v define|grep -v String|grep -v QuickHelpText|grep -v "Text \[ en-US \]"|grep -v HelpId|grep -v "Cancel-Button"|grep -v \"Dialog\"|grep -v "Dialog Controls" |grep -v .uno:|grep -v "//"|grep -v include|grep -v "paste region"|grep -v "Tabpage-Dialog"|sed -e 's/^ *//g' -e 's/ *$//g'|cut -d' ' -f2- |sort|uniq|wc -l` + +echo There are $dialogs unconverted dialogs +echo There are $tabpages unconverted tabpages + +num=$(($dialogs + $tabpages)) +echo An estimated additional $num .ui are required ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits