[Libreoffice-commits] core.git: bin/count-src-resources bin/count-todo-dialogs

Caolán McNamara caolanm at redhat.com
Tue Oct 11 08:15:16 UTC 2016


 bin/count-src-resources |   11 +++++++++++
 bin/count-todo-dialogs  |   41 -----------------------------------------
 2 files changed, 11 insertions(+), 41 deletions(-)

New commits:
commit 411c04c4025b4349df70a2dae723bbeac9f12f57
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Oct 11 09:05:53 2016 +0100

    repurpose count dialogs
    
    Change-Id: Id19d514f7ccbc69bf5ad0ca63181e2815f067178

diff --git a/bin/count-src-resources b/bin/count-src-resources
new file mode 100755
index 0000000..01fbdfc
--- /dev/null
+++ b/bin/count-src-resources
@@ -0,0 +1,11 @@
+#!/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 the number of remaining .src resources
+
+git ls-files *.src | xargs grep -ohE '^[a-zA-Z]+[ ]+[a-zA-Z_0-9]+' | cut -f 1 -d ' ' | sort | uniq -c | sort -n
diff --git a/bin/count-todo-dialogs b/bin/count-todo-dialogs
deleted file mode 100755
index 09f85c9..0000000
--- a/bin/count-todo-dialogs
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/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=0
-tabpages=0
-errorboxes=0
-infoboxes=0
-queryboxes=0
-warningboxes=0
-msgboxes=0
-floatingwindows=0
-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
-echo There are $errorboxes unconverted errorboxes
-echo There are $infoboxes unconverted infoboxes
-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=$dockingwindows
-echo An estimated additional $num .ui are required
-
-percent=$(($converted * 100 / ($num + $converted)))
-echo We are $percent% of the way through the .ui conversion.
-


More information about the Libreoffice-commits mailing list