summaryrefslogtreecommitdiffstats
path: root/po/message-stats.sh
diff options
context:
space:
mode:
Diffstat (limited to 'po/message-stats.sh')
-rw-r--r--po/message-stats.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/po/message-stats.sh b/po/message-stats.sh
new file mode 100644
index 0000000..0af63b3
--- /dev/null
+++ b/po/message-stats.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# This is a wrapper that executes stats.pl for all .po files in the
+# given directory
+#
+# This wrapper is executed by 'make message-stats'.
+# It is a custom target as defined in po/CMakeLists.txt
+#
+# The script requires to find the kmymoney2.pot file in the same
+# directory in order to check if the po file is based on the current
+# pot file.
+#
+#***************************************************************************
+#* This program is free software; you can redistribute it and/or modify *
+#* it under the terms of the GNU General Public License as published by *
+#* the Free Software Foundation; either version 2 of the License, or *
+#* (at your option) any later version. *
+#***************************************************************************
+
+# Change to the directory provided on the command line.
+cd $*
+
+echo "<?xml version='1.0' standalone='yes'?>"
+echo "<!DOCTYPE issuelist>"
+echo "<translist>"
+for i in *.po; do
+ perl ./stats.pl ./$i;
+done;
+echo "</translist>"
+echo "<?xml version='1.0'?>"