summaryrefslogtreecommitdiff
path: root/bin/count-src-resources
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-11 09:05:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-11 09:09:22 +0100
commit411c04c4025b4349df70a2dae723bbeac9f12f57 (patch)
treecf9567965a6a72a7640a8f7e13d024de72f0ed80 /bin/count-src-resources
parent5ab5779bf4a16f4ee4a8d1198ffbd8f842f2edd9 (diff)
repurpose count dialogs
Change-Id: Id19d514f7ccbc69bf5ad0ca63181e2815f067178
Diffstat (limited to 'bin/count-src-resources')
-rwxr-xr-xbin/count-src-resources11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/count-src-resources b/bin/count-src-resources
new file mode 100755
index 000000000000..01fbdfc7e440
--- /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