[Libreoffice-commits] core.git: bin/removetooltip_markups.sh

Muhammet Kara muhammet.kara at pardus.org.tr
Thu Sep 29 06:49:46 UTC 2016


 bin/removetooltip_markups.sh |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

New commits:
commit c9196b4996377eecba6c06cd916f0e2268c1933d
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date:   Wed Sep 28 18:07:44 2016 +0300

    tdf#101549: Add script to remove tooltip_markups
    
    From the glade .ui files. Currently the script doesn't check for
    identical tooltip_text.
    
    Change-Id: Ic6b80e7eb0ced2e4515cc57d3b548b26cef5b67c
    Reviewed-on: https://gerrit.libreoffice.org/29366
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: jan iversen <jani at documentfoundation.org>

diff --git a/bin/removetooltip_markups.sh b/bin/removetooltip_markups.sh
new file mode 100755
index 0000000..f7c91b6
--- /dev/null
+++ b/bin/removetooltip_markups.sh
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+#
+# 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 the script in the core directory to remove all tooltip_markup
+# properties from the .ui files
+
+removeTooltipMarkup()
+{
+    grep -v "<property name=\"tooltip_markup\"" $1 > temp && mv temp $1
+}
+
+shopt -s globstar
+for i in **/*.ui; do
+    echo -n "."
+    removeTooltipMarkup "$i"
+done
+
+echo
+echo "Done!"


More information about the Libreoffice-commits mailing list