aboutsummaryrefslogtreecommitdiffstats
path: root/mk-mo
diff options
context:
space:
mode:
Diffstat (limited to 'mk-mo')
-rw-r--r--mk-mo23
1 files changed, 23 insertions, 0 deletions
diff --git a/mk-mo b/mk-mo
new file mode 100644
index 0000000..70975ee
--- /dev/null
+++ b/mk-mo
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Recreates ALL .mo binaries from .po text files in po directory
+
+[[ -d locale ]] && rm -r locale
+
+mkdir locale
+
+cd po
+
+for po in *.po; do
+
+echo $po
+
+molang=$(echo $po|rev|cut -d. -f2-|rev)
+
+mkdir -p ../locale/$molang/LC_MESSAGES
+
+msgfmt -vco ../locale/$molang/LC_MESSAGES/remove-old-kernels.mo $po
+
+done
+
+cd ..